magic-removal: Simplified a redundant import in django.db.models.manipulators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cf0406d5ea
commit
12463932d3
|
@ -1,6 +1,5 @@
|
|||
from django.core.exceptions import ObjectDoesNotExist
|
||||
from django import forms
|
||||
from django.forms import Manipulator
|
||||
from django.db.models.fields import FileField, AutoField
|
||||
from django.db.models.exceptions import BadCommand
|
||||
from django.dispatch import dispatcher
|
||||
|
@ -57,7 +56,7 @@ class Naming(object):
|
|||
|
||||
name = property(_get_name)
|
||||
|
||||
class AutomaticManipulator(Manipulator, Naming):
|
||||
class AutomaticManipulator(forms.Manipulator, Naming):
|
||||
def _prepare(cls, model):
|
||||
cls.model = model
|
||||
cls.manager = model._default_manager
|
||||
|
|
Loading…
Reference in New Issue