摘要: django的模型from django.db import models""" A model pair to map car and its manufacturer"""class Manufacturer(models.Model): brand = models.CharField(max_length=100) location = models.CharField(max_length=100) def __unicode__(self): return self.brand class Meta: ordering = 阅读全文
posted @ 2013-12-19 23:39 spaceship9 阅读(716) 评论(0) 推荐(0) 编辑