mirror of
https://github.com/django/django.git
synced 2025-06-08 13:09:13 +00:00
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…
x
Reference in New Issue
Block a user