def deconstruct(self): name, path, args, kwargs = super(PickledObjectField, self).deconstruct() path = path.replace('yepes.fields.pickled', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'protocol': 2, }) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(TextField, self).deconstruct() path = path.replace('yepes.fields.text', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'min_length': None, }) return (name, path, args, kwargs)
def deconstruct(self): name, path, args, kwargs = super(ImageField, self).deconstruct() path = path.replace('yepes.contrib.thumbnails', 'yepes') clean_keywords(self, kwargs, variables={ 'thumbnail_storage': None, }) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(FloatField, self).deconstruct() path = path.replace('yepes.fields.float', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'max_value': None, 'min_value': None, }) return (name, path, args, kwargs)
def deconstruct(self): name, path, args, kwargs = super(PhoneNumberField, self).deconstruct() path = path.replace('yepes.fields.phone_number', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'max_length': 31, }, constants=[ 'force_lower', 'force_upper', 'normalize_spaces', 'trim_spaces', ]) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(FormulaField, self).deconstruct() path = path.replace('yepes.fields.formula', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'max_length': 255, 'normalize_spaces': False, 'trim_spaces': True, 'variables': [], }) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(models.BinaryField, self).deconstruct() path = path.replace('yepes.fields.compressed', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'calculated': False, 'compression_level': 6, 'editable': True, 'min_length': None, }) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(ColorField, self).deconstruct() path = path.replace('yepes.fields.color', 'yepes.fields') clean_keywords(self, kwargs, constants=[ 'force_ascii', 'force_lower', 'force_upper', 'max_length', 'normalize_spaces', 'trim_spaces', ]) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(models.BinaryField, self).deconstruct() path = path.replace('yepes.fields.encrypted', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'calculated': False, 'cipher': AES, 'editable': True, 'min_length': None, 'secret_key': None, }) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(EncryptedCharField, self).deconstruct() clean_keywords(self, kwargs, variables={ 'charset': None, 'force_ascii': False, 'force_lower': False, 'force_upper': False, 'normalize_spaces': True, 'trim_spaces': False, }) return (name, path, args, kwargs)
def deconstruct(self): name, path, args, kwargs = super(CharField, self).deconstruct() path = path.replace('yepes.fields.char', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'charset': None, 'force_ascii': False, 'force_lower': False, 'force_upper': False, 'min_length': None, 'normalize_spaces': True, 'trim_spaces': False, }) return (name, path, args, kwargs)
def deconstruct(self): name, path, args, kwargs = super(CommaSeparatedField, self).deconstruct() path = path.replace('yepes.fields.comma_separated', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'max_length': 255, 'separator': ', ', }, constants=[ 'normalize_spaces', 'trim_spaces', ]) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(IdentifierField, self).deconstruct() path = path.replace('yepes.fields.identifier', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'db_index': True, 'max_length': 31, 'min_length': 1, 'unique': True, }, constants=[ 'normalize_spaces', 'trim_spaces', ]) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(SlugField, self).deconstruct() path = path.replace('yepes.fields.slug', 'yepes.fields') clean_keywords(self, kwargs, variables={ 'db_index': True, 'force_ascii': True, 'max_length': 63, 'unique_with_respect_to': None, }, constants=[ 'blank', 'normalize_spaces', 'null', 'trim_spaces', ]) return name, path, args, kwargs
def deconstruct(self): name, path, args, kwargs = super(CalculatedField, self).deconstruct() clean_keywords(self, kwargs, variables={ 'calculated': False, }) return (name, path, args, kwargs)