Better Django models Posted by mace on Monday June 22, 2009 @09:22PM from the ibm.com dept. http://www.ibm.com/developerworks/opensource/library/os-django-models/index.html ( 1 comment | 3 points | on HN )
class Format(models.Model): type = models.CharField(choices=...
type() is a Python function, so it doesn't make sense to use "type" as a field name. I found out the hard way that this causes bugs.