magic-removal: Moved FieldDoesNotExist exception to django.db.models.fields and removed django.db.models.exceptions
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
766ee9aeb2
commit
75c4013a21
|
@ -8,7 +8,6 @@ from django.db.models.manager import Manager
|
||||||
from django.db.models.base import Model, AdminOptions
|
from django.db.models.base import Model, AdminOptions
|
||||||
from django.db.models.fields import *
|
from django.db.models.fields import *
|
||||||
from django.db.models.fields.related import *
|
from django.db.models.fields.related import *
|
||||||
from django.db.models.exceptions import FieldDoesNotExist
|
|
||||||
from django.db.models import signals
|
from django.db.models import signals
|
||||||
from django.utils.functional import curry
|
from django.utils.functional import curry
|
||||||
from django.utils.text import capfirst
|
from django.utils.text import capfirst
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
class FieldDoesNotExist(Exception):
|
|
||||||
pass
|
|
|
@ -25,6 +25,9 @@ prep_for_like_query = lambda x: str(x).replace("%", "\%").replace("_", "\_")
|
||||||
# returns the <ul> class for a given radio_admin value
|
# returns the <ul> class for a given radio_admin value
|
||||||
get_ul_class = lambda x: 'radiolist%s' % ((x == HORIZONTAL) and ' inline' or '')
|
get_ul_class = lambda x: 'radiolist%s' % ((x == HORIZONTAL) and ' inline' or '')
|
||||||
|
|
||||||
|
class FieldDoesNotExist(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
def manipulator_validator_unique(f, opts, self, field_data, all_data):
|
def manipulator_validator_unique(f, opts, self, field_data, all_data):
|
||||||
"Validates that the value is unique for this field."
|
"Validates that the value is unique for this field."
|
||||||
lookup_type = f.get_validator_unique_lookup_type()
|
lookup_type = f.get_validator_unique_lookup_type()
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
from django.db.models.related import RelatedObject
|
from django.db.models.related import RelatedObject
|
||||||
from django.db.models.fields.related import ManyToMany
|
from django.db.models.fields.related import ManyToMany
|
||||||
from django.db.models.fields import AutoField
|
from django.db.models.fields import AutoField, FieldDoesNotExist
|
||||||
from django.db.models.loading import get_models
|
from django.db.models.loading import get_models
|
||||||
from django.db.models.query import orderlist2sql
|
from django.db.models.query import orderlist2sql
|
||||||
from django.db.models.exceptions import FieldDoesNotExist
|
|
||||||
from bisect import bisect
|
from bisect import bisect
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from django.db import backend, connection
|
from django.db import backend, connection
|
||||||
from django.db.models.exceptions import *
|
from django.db.models.fields import FieldDoesNotExist
|
||||||
from django.utils.datastructures import SortedDict
|
from django.utils.datastructures import SortedDict
|
||||||
|
|
||||||
LOOKUP_SEPARATOR = '__'
|
LOOKUP_SEPARATOR = '__'
|
||||||
|
|
Loading…
Reference in New Issue