The tutorial on the django website shows this code for the models:
from django.db import models class Poll(models.Model): question = models.CharField(ma
In Python, a class attribute is always also an instance attribute:
class C(object): a = 1 def show_a(self): print self.a # <- works
But in django it is further complicated by the fact that Model classes have special metaclasses, so be careful to your assumptions!