ModelForm mixins¶
Mixin for a
ModelFormwhich setscreated_byandupdated_byfields for the instance when saved.Requires that a
Userinstance be passed in to the constructor. Views which utiliseAuthorshipViewMixinhandle this already.
Mixin for a ModelForm which sets
created_by and updated_by fields for the instance when saved.
Requires that a User instance be passed in to the constructor. Views
which utilise AuthorshipViewMixin
handle this already.