Le mardi 21 juillet 2015 10:55:19 UTC+3, Info Test a écrit : > > 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.save()
> >>> 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 [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/bcdedd95-10fd-4724-93ba-53afb108eff0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

