I have never used ModelForms, but this line as you wrote will not work
form.members.add(request.user) # THIS LINE DOESNT WORK
try instead:
form.managers.add(request.user)
Or you can write your own save() function, that will do all the stuff (no
need to call to saves functions)
Hope it helps.
Radovan
dexter-22 wrote:
>
>
> This is the error i receive:
>
> 'EventForm' object has no attribute 'managers'
> >
>
>
--
View this message in context:
http://www.nabble.com/How-add-extra-data-to-m2m-field-before-saving-form--tp20707747p20714034.html
Sent from the django-users mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---