Changeset af2a6ed


Ignore:
Timestamp:
Apr 18, 2012 12:51:06 PM (3 years ago)
Author:
yomguy <yomguy@…>
Branches:
master, crem, crem2, dev, dev2, diadems, dj1.6, feature/breadcrumbs, feature/ts-0.5, feature/ts-0.5.4, feature/writecache, generic, instru_search, lam, lam2, mapsv3, merge, nlivemulti, production, release/1.4.4, sabiod, security, server, social, storage, telecaster, test
Children:
54cb70b, 7566b3e, eb1356d, dfb1a3b, 57305a5
Parents:
ae93183
git-author:
yomguy <yomguy@…> (18/04/2012 12:51:06)
git-committer:
yomguy <yomguy@…> (18/04/2012 12:51:06)
Message:

remove item validation clean against collection code (NOT for crem branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telemeta/models/media.py

    rfabced9 raf2a6ed  
    386386        return False 
    387387 
    388     def clean(self): 
    389         if self.code and not self.is_valid_code(self.code): 
    390             raise ValidationError("%s is not a valid item code for collection %s" 
    391                                         % (self.code, self.collection.code)) 
     388    #def clean(self): 
     389        #if self.code and not self.is_valid_code(self.code): 
     390            #raise ValidationError("%s is not a valid item code for collection %s" 
     391                                        #% (self.code, self.collection.code)) 
    392392 
    393393    def save(self, force_insert=False, force_update=False): 
Note: See TracChangeset for help on using the changeset viewer.