]> git.parisson.com Git - telemeta.git/commitdiff
remove item validation clean against collection code (NOT for crem branch)
authoryomguy <yomguy@parisson.com>
Wed, 18 Apr 2012 10:51:06 +0000 (12:51 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Apr 2012 10:51:06 +0000 (12:51 +0200)
telemeta/models/media.py

index 835925af991a709587fd07debd82580a7cd1a4fc..74d8558005f51f1bb423265e0fc8cb80f20bb98d 100644 (file)
@@ -385,10 +385,10 @@ class MediaItem(MediaResource):
             return True
         return False
 
-    def clean(self):
-        if self.code and not self.is_valid_code(self.code):
-            raise ValidationError("%s is not a valid item code for collection %s"
-                                        % (self.code, self.collection.code))
+    #def clean(self):
+        #if self.code and not self.is_valid_code(self.code):
+            #raise ValidationError("%s is not a valid item code for collection %s"
+                                        #% (self.code, self.collection.code))
 
     def save(self, force_insert=False, force_update=False):
         super(MediaItem, self).save(force_insert, force_update)