For anyone else needing this:

In form:

    def __init__(self, *args, **kwargs):
        self.creator = kwargs.pop('creator', None)

In view:

form = PostForm(request.POST, creator=self.request.user.pk)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b839e5db-1d25-425e-8bbb-b8a05d501e74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to