Code

Changes between Version 2 and Version 3 of FormGenScript


Ignore:
Timestamp:
01/04/07 11:14:25 (7 years ago)
Author:
Lllama
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FormGenScript

    v2 v3  
    99#!python 
    1010class Category(models.Model): 
    11     category = meta.CharField(maxlength=50, unique=True) 
    12     createdOn = meta.DateField(auto_now_add=True) 
    13     modifiedOn = meta.DateField(auto_now=True) 
    14     test = meta.ManyToManyField(auth.User, verbose_name='This is a test field', related_name='test') 
    15     test2 = meta.OneToOneField(auth.User, verbose_name='test2', related_name='test2') 
     11    category = models.CharField(maxlength=50, unique=True) 
     12    createdOn = models.DateField(auto_now_add=True) 
     13    modifiedOn = models.DateField(auto_now=True) 
     14    test = models.ManyToManyField(auth.User, verbose_name='This is a test field', related_name='test') 
     15    test2 = models.OneToOneField(auth.User, verbose_name='test2', related_name='test2') 
    1616}}} 
    1717