Commits

Anonymous committed cfe739a

[svn r95] after discussing on irc, and some tests, this change was needed. Fix issue #42.

  • Participants
  • Parent commits c867764

Comments (0)

Files changed (2)

File django_authopenid/admin.py

+# -*- coding: utf-8 -*-
+
+from django.contrib import admin
+from django_authopenid.models import UserAssociation
+
+
+class UserAssociationAdmin(admin.ModelAdmin):
+    """User association admin class"""
+admin.site.register(UserAssociation, UserAssociationAdmin)

File django_authopenid/models.py

 # -*- coding: utf-8 -*-
 from django.conf import settings
-from django.contrib import admin
 from django.contrib.auth.models import User
 from django.db import models
 
     
     def __unicode__(self):
         return "Openid %s with user %s" % (self.openid_url, self.user)
-        
-class UserAssociationAdmin(admin.ModelAdmin):
-    """User association admin class"""
-admin.site.register(UserAssociation, UserAssociationAdmin)
 
 class UserPasswordQueueManager(models.Manager):
     """ manager for UserPasswordQueue object """