Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed list filter threshold to 25

  • Loading branch information...
commit 4edaad197b0b0f69ade52fe7b23d40da3524097e 1 parent 21ef5fc
@WoLpH authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django_utils/management/commands/admin_autogen.py
View
2  django_utils/management/commands/admin_autogen.py
@@ -96,7 +96,7 @@ def handle_app(self, app, **options):
if related_count >= RAW_ID_THRESHOLD:
model_dict['raw_id_fields'].append(field.name)
- if related_count >= LIST_FILTER_TRESHOLD:
+ if related_count <= LIST_FILTER_TRESHOLD:
model_dict['list_filter'].append(field.name)
else:
model_dict['list_filter'].append(field.name)
Please sign in to comment.
Something went wrong with that request. Please try again.