FAQ
#18441: blank=True, null=False ForeignKey fields populated by presave hooks cannot
be edited cleanly in the admin
-------------------------------+--------------------------------------
Reporter: jaylett | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by aaugustin):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

I think you're supposed to use
[https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model
ModelAdmin.save_model] rather than a signal (assuming the presave hook
you're referring to is the pre_save signal).

--
Ticket URL: <https://code.djangoproject.com/ticket/18441#comment:1>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to django-updates+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 4 | next ›
Discussion Overview
groupdjango-updates @
categoriesdjango, python
postedJun 7, '12 at 9:51a
activeAug 4, '12 at 4:59p
posts4
users1
websitedjangoproject.com

1 user in discussion

Django: 4 posts

People

Translate

site design / logo © 2018 Grokbase