Changeset 1424
- Timestamp:
- 11/24/05 20:52:55 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/core/meta/__init__.py
r1413 r1424 1826 1826 obj = change and self.original_object or None 1827 1827 for f in opts.get_data_holders(self.follow): 1828 fol = self.follow.get(f.name)1829 new_data.update(f.flatten_data(fol, obj))1828 fol = self.follow.get(f.name) 1829 new_data.update(f.flatten_data(fol, obj)) 1830 1830 return new_data 1831 1831 1832 1832 def manipulator_validator_unique_together(field_name_list, opts, self, field_data, all_data): 1833 1833 from django.utils.text import get_text_list 1834 1835 1834 field_list = [opts.get_field(field_name) for field_name in field_name_list] 1836 1835 if isinstance(field_list[0].rel, ManyToOne): … … 1839 1838 kwargs = {'%s__iexact' % field_name_list[0]: field_data} 1840 1839 for f in field_list[1:]: 1841 # This is really not going to work for fields that have different form fields, eg DateTime 1840 # This is really not going to work for fields that have different 1841 # form fields, e.g. DateTime. 1842 1842 # This validation needs to occur after html2python to be effective. 1843 1843 field_val = all_data.get(f.attname, None)
