Changes between Version 18 and Version 19 of DynamicModels


Ignore:
Timestamp:
01/22/2013 06:53:39 PM (3 years ago)
Author:
grobertson
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