def validate(self, *args):
        """Validate contents of class
        """
        super(self.__class__, self).validate(*args)
        if not self.name:
            raise ValidationError('name is required for Data')
def validate ( self , * args ) : super ( self . __class__ , self ) . validate ( * args ) if not self . name : raise ValidationError ( 'name is required for Data' )
Validate contents of class