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:
Adrian Holovaty 2006-01-23 02:41:01 +00:00
parent 766ee9aeb2
commit 75c4013a21
5 changed files with 5 additions and 6 deletions

View File

@ -8,7 +8,6 @@ from django.db.models.manager import Manager
from django.db.models.base import Model, AdminOptions
from django.db.models.fields import *
from django.db.models.fields.related import *
from django.db.models.exceptions import FieldDoesNotExist
from django.db.models import signals
from django.utils.functional import curry
from django.utils.text import capfirst

View File

@ -1,2 +0,0 @@
class FieldDoesNotExist(Exception):
pass

View File

@ -25,6 +25,9 @@ prep_for_like_query = lambda x: str(x).replace("%", "\%").replace("_", "\_")
# returns the <ul> class for a given radio_admin value
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):
"Validates that the value is unique for this field."
lookup_type = f.get_validator_unique_lookup_type()

View File

@ -1,9 +1,8 @@
from django.db.models.related import RelatedObject
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.query import orderlist2sql
from django.db.models.exceptions import FieldDoesNotExist
from bisect import bisect
import re

View File

@ -1,5 +1,5 @@
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
LOOKUP_SEPARATOR = '__'