#NEWLINE# def validate( self , value ) : #NEWLINE# #INDENT# value = super ( BaseCollectionColumn , self ) . validate ( value ) #NEWLINE# if ( ( value is not None ) and ( len ( self ) > 65535 ) ) : #NEWLINE# #INDENT# raise ValidationError ( "{0} Collection can't have more than 65535 elements." . format ( self . column_name ) ) #NEWLINE# #UNINDENT# return value