Changes between Version 2 and Version 3 of new_meta_api
- Timestamp:
- Jul 11, 2014, 5:02:38 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
new_meta_api
v2 v3 42 42 ===== Related Object 43 43 A Related Object is a relation from another model (such as a ForeignKey) that points to the current model 44 {{{ 45 class City(models.Model): 46 name = models.CharField(max_length=100) 47 48 class Person(models.Model): 49 # M2M fields 50 city = models.ForeignKey(City) 51 }}} 44 52 45 53