[EMAIL PROTECTED] wrote:
> You can't assign to the form so your code should look like:
>
> if form.is_valid():
> c = form.save(commit=False)
> c.user = request.user
>
Since the field in the model is "commentUser" it should be:
c.commentUser = request.user
> c.save()
>
> call
Did you svn update from previous trunk to magic-removal? I experienced
this because svn update left a directory urls in
django/contrib/admin/urls/, so i think there was some type of conflict
with the urls.py that is now directly in the django/contrib/admin/
GinTon escribió:
> Solved after of
s produces
the error,
object.b_set.create().save()
but:
object.b_set.create()
does the trick, i think that the first one shouldn't be used, i left it
like that while changing code to use the Magic-Removal version of
django. I hope this also helps you.
--
Fernando Gu
3 matches
Mail list logo