Changes between Version 9 and Version 10 of CookBookSplitModelsToFiles


Ignore:
Timestamp:
02/09/2010 02:59:11 AM (5 years ago)
Author:
Adys
Comment:

there's no need to recommend an unnecessary import.

Legend:

Unmodified
Added
Removed
Modified
  • CookBookSplitModelsToFiles

    v9 v10  
    3333#!python
    3434from django.db import models
    35 from poll import Poll
    3635
    3736class Choice(models.Model):
    38     poll = models.ForeignKey(Poll)
     37    poll = models.ForeignKey('Poll')
    3938    choice = models.CharField(max_length=200)
    4039    votes = models.IntegerField()
     
    4443}}}
    4544
    46 Ok so the example is a bit stupid but it should illustrate the point.
    4745
    4846== Providing initial sql data for models ==
Back to Top