aboutsummaryrefslogtreecommitdiffstats
path: root/account
diff options
context:
space:
mode:
Diffstat (limited to 'account')
-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,
-])
-
-