Changes between Version 18 and Version 19 of CookBookNewformsAdminAndUser


Ignore:
Timestamp:
Dec 9, 2008, 12:07:59 PM (16 years ago)
Author:
Rajesh Dhawan
Comment:

Used formset.model instead of formset.name

Legend:

Unmodified
Added
Removed
Modified
  • CookBookNewformsAdminAndUser

    v18 v19  
    5151            instance.save()
    5252
    53         if formset.__name__ == 'CommentInline':
     53        if formset.model == Comment:
    5454            instances = formset.save(commit=False)
    5555            map(set_user, instances)
Back to Top