aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-21 23:30:28 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-21 23:30:28 +0800
commita8e2d41bd7e9e647391ff5d675f66cd59eee851a (patch)
tree9f795486c9ac1008d90bdf43b925a52871ecda25
parent838b4e395282da3e4949d97e11fd608e081008c8 (diff)
downloaddjango-skaschool-a8e2d41bd7e9e647391ff5d675f66cd59eee851a.tar.bz2
fixes to account admin.site.register
-rw-r--r--account/admin.py9
-rw-r--r--account/models.py7
2 files changed, 8 insertions, 8 deletions
diff --git a/account/admin.py b/account/admin.py
index 8c38f3f..b5ec5b6 100644
--- a/account/admin.py
+++ b/account/admin.py
@@ -1,3 +1,10 @@
+# -*- coding: utf-8 -*-
+
from django.contrib import admin
-# Register your models here.
+from account.models import UserProfile
+
+
+admin.site.register(UserProfile)
+
+
diff --git a/account/models.py b/account/models.py
index d9fb8ea..f3f12f8 100644
--- a/account/models.py
+++ b/account/models.py
@@ -6,7 +6,6 @@
from django.db import models
from django.contrib.auth.models import User
-from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
@@ -131,9 +130,3 @@ def user_registered_callback(sender, user, request, **kwargs):
user_registered.connect(user_registered_callback)
-### add to adim
-admin.site.register([
- UserProfile,
-])
-
-