You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class City(Document):
title = StringField(required=True, unique=True)
def __str__(self):
return self.title
class Category(Document):
title = StringField(required=True, unique=True)
city = ReferenceField(City, reverse_delete_rule=CASCADE, required=True)
def __str__(self):
return self.title
admin
class CategoryAdmin(DocumentAdmin):
search_fields = ('title', )
list_filter = ('city', )
Okay better late then never I guess. The rel attribute thing is fixed. The list_field with reference field won't fix though. Sorry, see the addition to the readme about the why.
This is at the moment patched to work just like it did in Django 1.3. The current fix is in views.py#55-60.
See release notes https://docs.djangoproject.com/en/dev/releases/1.4/#list-filters-in-admin-interface
The text was updated successfully, but these errors were encountered: