#2750: ManyToManyField ignores 'default' option
-------------------------------------+-------------------------------------
Reporter: bangcok_dangerus@… | Owner: Nipun
| Peiris
Type: Bug | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Nipun Peiris):
Update: I've implemented the fix by modifying `Field.formfield()` to check
`self.has_default() and not self.many_to_many` before applying defaults.
The regression test I wrote passes on my branch. However, there are some
existing test failures. I need to look into, they might be relying on the
old behavior. Will update once I've sorted those out.
--
Ticket URL: <https://code.djangoproject.com/ticket/2750#comment:29>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019b53ba8672-9c2bde87-513a-4b51-bf69-c1cc8c5186d9-000000%40eu-central-1.amazonses.com.