Django

Code

Show
Ignore:
Timestamp:
07/11/08 02:34:11 (4 months ago)
Author:
mtredinnick
Message:

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 puyb@puyb.net and Karen
Tracey.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/models/fields/__init__.py

    r7859 r7882  
    327327        if self.unique_for_year: 
    328328            params['validator_list'].append(getattr(manipulator, 'isUnique%sFor%s' % (self.name, self.unique_for_year))) 
    329         if self.unique or (self.primary_key and not rel)
     329        if self.unique and not rel
    330330            params['validator_list'].append(curry(manipulator_validator_unique, self, opts, manipulator)) 
    331331