Browse files

Fixed #7682 -- Added a work around to keep existing admin alive until

newforms-admin merges (to handle changes in [7790]).

This code becomes irrelevant in a non-oldforms world, so even if it's not quite
correct, it will do for now. Based on a patch from and Karen

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Jul 11, 2008
1 parent e18fccc commit 1e00458521b81bc86883ce938ea689b799bfd928
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/fields/
@@ -326,7 +326,7 @@ def get_manipulator_fields(self, opts, manipulator, change, name_prefix='', rel=
params['validator_list'].append(getattr(manipulator, 'isUnique%sFor%s' % (, self.unique_for_month)))
if self.unique_for_year:
params['validator_list'].append(getattr(manipulator, 'isUnique%sFor%s' % (, self.unique_for_year)))
- if self.unique or (self.primary_key and not rel):
+ if self.unique and not rel:
params['validator_list'].append(curry(manipulator_validator_unique, self, opts, manipulator))
# Only add is_required=True if the field cannot be blank. Primary keys

0 comments on commit 1e00458

Please sign in to comment.