I have a model "Entry" with an "active" field, which is just a
boolean.  All of the current entries were false, and I was trying to
set them all as true, and I'm running into a strange problem.  Here's
an example, trying to set just one entry to inactive:
<code>
>>> from dictionary.models import Entry
>>> entries = Entry.objects.filter(active=0)
>>> entries.count()
3642
>>> e1 = entries[0]
>>> e1
<Entry: إبّاخ>
>>> e1.active
False
>>> e1.active=True
>>> e1.save()
>>> e1.active
True
>>> Entry.objects.filter(active=0).count()
3642
</code>

Even though, when I checked e1.active, it showed it as being "True",
you can tell from the final count of inactive items that it hadn't
actually changed.  I see the same thing when I go into the admin
change page for that item -- "Active" is not checked.

What is going on here?

~Karen

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to