Changes between Version 9 and Version 10 of CookBookSplitModelsToFiles
- Timestamp:
- Feb 9, 2010, 2:59:11 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookSplitModelsToFiles
v9 v10 33 33 #!python 34 34 from django.db import models 35 from poll import Poll36 35 37 36 class Choice(models.Model): 38 poll = models.ForeignKey( Poll)37 poll = models.ForeignKey('Poll') 39 38 choice = models.CharField(max_length=200) 40 39 votes = models.IntegerField() … … 44 43 }}} 45 44 46 Ok so the example is a bit stupid but it should illustrate the point.47 45 48 46 == Providing initial sql data for models ==