Skip to content

Commit

Permalink
remove our custom tastypie django admin bits (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewdurbin committed Oct 24, 2022
1 parent d6cb282 commit e8e4c24
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,3 @@ class MembershipAdmin(admin.ModelAdmin):
search_fields = ['creator__username']
list_filter = ['membership_type']
raw_id_fields = ['creator']


class ApiKeyAdmin(admin.ModelAdmin):
list_display = ('user', 'created', )
date_hierarchy = 'created'


try:
admin.site.unregister(ApiKey)
except admin.sites.NotRegistered:
pass
finally:
admin.site.register(ApiKey, ApiKeyAdmin)

0 comments on commit e8e4c24

Please sign in to comment.