Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
register Profile using a GuardedModelAdmin
Browse files Browse the repository at this point in the history
when registering the profile use a GuardedModelAdmin so that the guardian object permissions can be set in the in the admin.
  • Loading branch information
adsworth committed Mar 11, 2014
1 parent e8ddd19 commit b77ab16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userena/admin.py
Expand Up @@ -27,4 +27,4 @@ class UserenaAdmin(UserAdmin, GuardedModelAdmin):
admin.site.register(get_user_model(), UserenaAdmin)

if userena_settings.USERENA_REGISTER_PROFILE:
admin.site.register(get_profile_model())
admin.site.register(get_profile_model(), GuardedModelAdmin)

0 comments on commit b77ab16

Please sign in to comment.