#21755: Add ForeignKey support to REQUIRED_FIELDS
------------------------------+------------------------------------
     Reporter:  cjerdonek     |                    Owner:  nobody
         Type:  New feature   |                   Status:  new
    Component:  contrib.auth  |                  Version:  master
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Accepted
    Has patch:  1             |      Needs documentation:  1
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+------------------------------------

Comment (by anubhav9042):

 For now, I have skipped the call to `clean` in case of FK and left the
 validation part of `Descriptors`.
 I tried to implement what @bmispelon commented, but there seemed to a be
 problem with that. In `validate()` in `related.py`, after we get the
 correct qs, qs.exists() somehow retriggers call to `validate()` and we get
 empty qs and error is raised. Can anyone explain this?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21755#comment:13>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.38a60e6365c74bb9f02133c87267cba6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to