Skip to content

Commit

Permalink
Get rid of UserProfileInline. It doesn't work.
Browse files Browse the repository at this point in the history
This snippet is all over the internet, but doesn't work at all. It
prevents users from being created in the Django admin.

Closes global-pulse#82, barely.
  • Loading branch information
adammck committed Nov 28, 2011
1 parent c856515 commit bd10907
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions hunchworks/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,3 @@
admin.site.register(Tag)
admin.site.register(Role)
admin.site.register(Invitation)


# Unregister the Django auth user, and re-register it with our
# related UserProfile inline.
from django.contrib.auth.models import User
from django.contrib.auth.admin import UserAdmin

class UserProfileInline(admin.StackedInline):
model = UserProfile

class UserProfileAdmin(UserAdmin):
inlines = [UserProfileInline]

admin.site.unregister(User)
admin.site.register(User, UserProfileAdmin)

0 comments on commit bd10907

Please sign in to comment.