Wednesday, August 19, 2015

Re: Django 1.6.11 model class query

I'm guessing Django does not update all of the fields of the instance when saving it, only the id

On Wed, Aug 19, 2015 at 11:31 AM, Nikunj Badjatya <nikunjbadjatya@gmail.com> wrote:
Also, 
When the same object is retrieved using 


print(Test.objects.get(id=row.id).uuid)  # Prints uuid.



--
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+unsubscribe@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/75749d6e-f52e-4e36-97ec-23316f2d7cf4%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@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/CALn3ei0sf76roYrwg1QdERquZE6DqMh9j686hJn45zU1FdBwuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment