I have a model, Store:

class Store(models.Model):
    """
     Store is use to link users and to provide a target for the weather report.
    """
    name = models.CharField(max_length=50, help_text="Simple
Identifier for Store -")
    zip_code = models.CharField(max_length=20,help_text = "Used to get
weather data for this store.")
    visible = models.BooleanField(default=True,db_index=True,help_text
= "You can setup a store and make them invisible until they're ready
to play..")

    objects = models.Manager()
    are_visible = StoresAreVisible()

    class Meta:
        ordering = ('name',)

    def __unicode__(self):
        return self.name


With this admin.py setup:

class StoreOptions(admin.ModelAdmin):
    save_on_top = True
    list_display = ('name','zip_code')
    inlines = [UserProfileStoreInline,]
    search_fields = ['name','zip_code']


Regardless of the 'visible' value, it is always displayed in admin as
true - checked.  If I uncheck it, the database field doesn't change.
If I make the database value 0 'manually,' and play with various
settings, I can't get the database to update on that field.

I've made no other changes to the admin section.

I have other boolean fields which work fine.

Any thoughts on where else I should look?


TIA

 - Lee

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

Reply via email to