comparison accounts/admin.py @ 1206:02181fa5ac9d modernize tip

Update to Django 1.9.
author Brian Neal <bgneal@gmail.com>
date Wed, 22 Jan 2025 17:58:16 -0600
parents ee87ea74d46b
children
comparison
equal deleted inserted replaced
1205:510ef3cbf3e6 1206:02181fa5ac9d
2 2
3 from django.contrib import admin 3 from django.contrib import admin
4 from accounts.models import IllegalUsername 4 from accounts.models import IllegalUsername
5 from accounts.models import IllegalEmail 5 from accounts.models import IllegalEmail
6 from accounts.models import PendingUser 6 from accounts.models import PendingUser
7 from accounts import create_new_user 7 from accounts.utils import create_new_user
8 8
9 9
10 class PendingUserAdmin(admin.ModelAdmin): 10 class PendingUserAdmin(admin.ModelAdmin):
11 list_display = ('username', 'email', 'date_joined') 11 list_display = ('username', 'email', 'date_joined')
12 actions = ('activate_account', ) 12 actions = ('activate_account', )