1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-17 07:41:26 +00:00

Fix circular import bug

This commit is contained in:
xiez
2012-08-09 00:06:04 +08:00
parent 074e781831
commit cc040bc09f
2 changed files with 3 additions and 4 deletions

View File

@@ -10,6 +10,8 @@ from django.template.loader import render_to_string
from django.utils.hashcompat import sha_constructor
from django.utils.translation import ugettext_lazy as _
from seahub.base.accounts import User
SHA1_RE = re.compile('^[a-f0-9]{40}$')
@@ -289,5 +291,3 @@ class RegistrationProfile(models.Model):
except User.DoesNotExist:
pass
# We put this import here to prevent circular import
from seahub.base.accounts import User