From a8e2d41bd7e9e647391ff5d675f66cd59eee851a Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Mon, 21 Apr 2014 23:30:28 +0800 Subject: fixes to account admin.site.register --- account/admin.py | 9 ++++++++- account/models.py | 7 ------- 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, -]) - - -- cgit v1.2.2