#2019: manipulator_validator_unique_together does not work correctly
--------------------------------+-------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  adrian
     Type:  defect              |       Status:  new   
 Priority:  normal              |    Milestone:        
Component:  Admin interface     |      Version:  SVN   
 Severity:  normal              |   Resolution:        
 Keywords:                      |  
--------------------------------+-------------------------------------------
Comment (by [EMAIL PROTECTED]):

 The described workaround works for me, but I don't know either if it's
 correct:
 {{{
 Index: django/db/models/manipulators.py
 ===================================================================
 --- django/db/models/manipulators.py    (revision 3116)
 +++ django/db/models/manipulators.py    (working copy)
 @@ -283,7 +283,7 @@
          # This is really not going to work for fields that have different
          # form fields, e.g. DateTime.
          # This validation needs to occur after html2python to be
 effective.
 -        field_val = all_data.get(f.attname, None)
 +        field_val = all_data.get(f.name, None)
          if field_val is None:
              # This will be caught by another validator, assuming the
 field
              # doesn't have blank=True.
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2019>
Django <http://code.djangoproject.org/>
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to