Opened 13 years ago

Closed 12 years ago

#1306 closed defect (fixed)

[patch] Auth Manager class is using Manager.klass, should use Manager.model now

Reported by: jpaulofarias at gmail dot com Owned by: Adrian Holovaty
Component: Tools Version: magic-removal
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Patch inlined bellow:

Index: django/contrib/auth/
--- django/contrib/auth/	(revision 2214)
+++ django/contrib/auth/	(working copy)
@@ -39,7 +39,7 @@
     def create_user(self, username, email, password):
         "Creates and saves a User with the given username, e-mail and password."
         now =
-        user = self.klass(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now)
+        user = self.model(None, username, '', '', email.strip().lower(), 'placeholder', False, True, False, now, now)
         return user

Change History (1)

comment:1 Changed 12 years ago by James Bennett

Resolution: fixed
Status: newclosed

This appears to be fixed in current trunk.

Note: See TracTickets for help on using tickets.
Back to Top