When I save my model, there is no effect in database.
What is the problem?

class Profil(models.Model):
    user = models.OneToOneField(User)


in manage.py shell

>>> p = models.Profil.objects.get(user__username='testname')

>>> p.user.is_superuser
False
>>> p.user.is_superuser = True
>>> p.user.is_superuser
True
>>> exit()
>>> p = models.Profil.objects.get(user__username='testname')
>>> p.user.is_superuser

False ---------> ????????????????????????????????


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/df7490d5-108e-4960-b80b-8071662d8db1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to