Run tool get_sencha_fields_from_django_model

Back

Description

get a model definition(django) and get all the fields so we can use it in Sencha Architect for creating Models.

sample:
class Verifier(models.Model):
verifier_id = UuidField(db_column=u'VerifierID', primary_key=True, max_length=40, editable=False)
name = models.CharField(max_length=50, db_column=u'Name')
order_on = models.CharField(max_length=50, db_column=u'OrderOn')
salutation = models.CharField(max_length=50, db_column=u'Salutation', blank=True)
address = models.CharField(max_length=60, db_column=u'Address')
city = models.ForeignKey(City, null=True, db_column=u'CityID', related_name = 'CityID',blank=True)
active = models.BooleanField(db_column=u'Active')
phone = models.CharField(max_length=14, db_column=u'Phone')
fax = models.CharField(max_length=14, db_column=u'Fax')
email = models.CharField(max_length=50, db_column=u'Email')
contact_notes = models.CharField(max_length=500, db_column=u'ContactNotes')

form_send_method = models.PositiveSmallIntegerField(db_column=u'FormSendMethod', blank=True)

Category: General

Author: edilio

Please, enter params:

Result