Skip to content

Commit

Permalink
Merge pull request bread-and-pepper#325 from h3/master
Browse files Browse the repository at this point in the history
Fixing issue #324 for Django 1.5
  • Loading branch information
wunki committed Jun 17, 2013
2 parents e442c96 + 0de7bb6 commit af75b23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion userena/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ class UserenaAdmin(UserAdmin, GuardedModelAdmin):
'is_staff', 'is_active', 'date_joined')
list_filter = ('is_staff', 'is_superuser', 'is_active')

admin.site.unregister(get_user_model())
try:
admin.site.unregister(get_user_model())
except admin.sites.NotRegistered:
pass

admin.site.register(get_user_model(), UserenaAdmin)
admin.site.register(get_profile_model())

0 comments on commit af75b23

Please sign in to comment.