@@ -0,0 +1,1619 @@
+from django.contrib import admin%0Afrom django.contrib.auth.admin import UserAdmin%0Afrom django.contrib.auth.forms import UserChangeForm, UserCreationForm%0Afrom django.utils.translation import ugettext_lazy as _%0A%0Afrom .models import User%0A%0A%0Aclass PyConUserCreationForm(UserCreationForm):%0A    %22%22%22%0A    A form that creates a user, with no privileges, from the given email and%0A    password.%0A    %22%22%22%0A%0A    class Meta:%0A        model = User%0A        fields = ('email', )%0A%0A%0Aclass PyConUserChangeForm(UserChangeForm):%0A    %22%22%22A form for updating users. Includes all the fields on%0A    the user, but replaces the password field with admin's%0A    password hash display field.%0A    %22%22%22%0A%0A    class Meta:%0A        model = User%0A        fields = '__all__'%0A%0A%0Aclass PyConUserAdmin(UserAdmin):%0A    # The forms to add and change user instances%0A%0A    # The fields to be used in displaying the User model.%0A    # These override the definitions on the base UserAdmin%0A    # that reference the removed 'username' field%0A    fieldsets = ((None, %7B%0A        'fields': ('email', 'password')%0A    %7D), (_('Permissions'), %7B%0A        'fields': ('is_active', 'is_staff', 'is_superuser')%0A    %7D), (_('Important dates'), %7B%0A        'fields': ('last_login', 'date_joined')%0A    %7D), )%0A    add_fieldsets = ((None, %7B%0A        'classes': ('wide', ),%0A        'fields': ('email', 'password1', 'password2')%0A    %7D), )%0A    form = PyConUserChangeForm%0A    add_form = PyConUserCreationForm%0A    readonly_fields = ('date_joined', )%0A    list_display = ('email', 'is_staff', 'is_superuser')%0A    search_fields = ('email', )%0A    ordering = ('email', )%0A%0A%0Aadmin.site.register(User, PyConUserAdmin)%0A

Add user admin