Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Python 3 compat

  • Loading branch information...
commit 1d361ad0ea978ed1a31255398d6f83e44e45a23a 1 parent 84b006c
@koirikivi koirikivi authored
View
6 cms/test_utils/project/emailuserapp/admin.py
@@ -4,8 +4,8 @@
from django.utils.translation import ugettext, ugettext_lazy as _
-from models import EmailUser
-from forms import UserChangeForm, UserCreationForm
+from .models import EmailUser
+from .forms import UserChangeForm, UserCreationForm
class UserAdmin(OriginalUserAdmin):
# The form to add and change user instances
@@ -38,4 +38,4 @@ class UserAdmin(OriginalUserAdmin):
# Now register the emailuser admin
-admin.site.register(EmailUser, UserAdmin)
+admin.site.register(EmailUser, UserAdmin)
View
2  cms/test_utils/project/emailuserapp/forms.py
@@ -7,7 +7,7 @@
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
-from models import EmailUser
+from .models import EmailUser
class UserCreationForm(forms.ModelForm):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.