Skip to content

Commit

Permalink
Merge pull request #4849 from rtfd/fix-feature-admin
Browse files Browse the repository at this point in the history
Use raw_id_fields so that the Feature admin loads
  • Loading branch information
ericholscher committed Nov 1, 2018
2 parents 8d659a1 + 83db5a7 commit 897bc11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions readthedocs/projects/admin.py
Expand Up @@ -195,6 +195,7 @@ class FeatureAdmin(admin.ModelAdmin):
search_fields = ('feature_id',)
filter_horizontal = ('projects',)
readonly_fields = ('add_date',)
raw_id_fields = ('projects',)

def project_count(self, feature):
return feature.projects.count()
Expand Down

0 comments on commit 897bc11

Please sign in to comment.