Django

Code

Ticket #1021: django-manipulators-fix-ticket1021.patch

File django-manipulators-fix-ticket1021.patch, 0.6 kB (added by wam@cisco.com, 2 years ago)

fix for unique_together

  • manipulators.py

    old new  
    286286        # This is really not going to work for fields that have different 
    287287        # form fields, e.g. DateTime. 
    288288        # This validation needs to occur after html2python to be effective. 
    289         field_val = all_data.get(f.attname, None) 
     289        field_val = all_data.get(f.name, None) 
    290290        if field_val is None: 
    291291            # This will be caught by another validator, assuming the field 
    292292            # doesn't have blank=True.