Changes between Version 2 and Version 3 of new_meta_api


Ignore:
Timestamp:
Jul 11, 2014, 5:02:38 AM (10 years ago)
Author:
pirosb3
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • new_meta_api

    v2 v3  
    4242===== Related Object
    4343A Related Object is a relation from another model (such as a ForeignKey) that points to the current model
     44{{{
     45class City(models.Model):
     46    name = models.CharField(max_length=100)
     47
     48class Person(models.Model):
     49    # M2M fields
     50    city = models.ForeignKey(City)
     51}}}
    4452     
    4553
Back to Top