Changes between Version 18 and Version 19 of DynamicModels


Ignore:
Timestamp:
Jan 22, 2013, 6:53:39 PM (12 years ago)
Author:
Glen Robertson
Comment:

Updated database-driven approach code: renamed validator_list attribute to validators.

Legend:

Unmodified
Added
Removed
Modified
  • DynamicModels

    v18 v19  
    186186    model = models.ForeignKey(Model, related_name='fields')
    187187    name = models.CharField(max_length=255)
    188     type = models.CharField(max_length=255, validator_list=[is_valid_field])
     188    type = models.CharField(max_length=255, validators=[is_valid_field])
    189189
    190190    def get_django_field(self):
Back to Top