Changeset 4449
- Timestamp:
- 01/29/07 10:12:17 (2 years ago)
- Files:
-
- django/trunk/django/newforms/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/newforms/models.py
r4439 r4449 38 38 instance.save() 39 39 for f in opts.many_to_many: 40 setattr(instance, f.attname, getattr(instance, f.attname).model.objects.filter(pk__in = clean_data[f.name]))40 setattr(instance, f.attname, clean_data[f.name]) 41 41 # GOTCHA: If many-to-many data is given and commit=False, the many-to-many 42 42 # data will be lost. This happens because a many-to-many options cannot be
