Commits

Andres Vargas  committed 8d0ac8f

changes

  • Participants
  • Parent commits 068ee76

Comments (0)

Files changed (2)

File trident/accounts/admin.py

             return super(DatabaseAdmin,self).formfield_for_foreignkey(db_field, request, **kwargs)
         if db_field.name =="profile":
             profile = request.user.get_profile()
-            kwargs["queryset"] = Profile.objects.get(id = profile.id)
+            kwargs["queryset"] = Profile.objects.filter(id = profile.id)
         return super(DatabaseAdmin,self).formfield_for_foreignkey(db_field, request, **kwargs)
 
     def queryset(self, request):

File trident/settings.py

 }
 
 
+AUTH_PROFILE_MODULE= "accounts.Profile"
 TRYTON_ADMIN_PASSWORD="admin"
 TRYTON_CONNECT = "http://localhost:8000"