magic-removal: Changed ManipulatorDescriptor to raise AttributeError correctly
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1af3a39868
commit
a35f7c6e15
|
@ -26,7 +26,7 @@ class ManipulatorDescriptor(object):
|
|||
|
||||
def __get__(self, instance, model=None):
|
||||
if instance != None:
|
||||
raise "Manipulator cannot be accessed via instance"
|
||||
raise AttributeError, "Manipulator cannot be accessed via instance"
|
||||
else:
|
||||
if not self.man:
|
||||
# Create a class that inherits from the "Manipulator" class
|
||||
|
|
Loading…
Reference in New Issue