Better Django models(ibm.com)3 ポイント·投稿者 mace·17 年前·1 コメントibm.comBetter Django modelshttp://www.ibm.com/developerworks/opensource/library/os-django-models/index.html1 コメントコメントを投稿[–]bcater·17 年前返信Interesting that they use "type" as a field for the Format class: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.
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.