How to auto create a from Model just the Admin do?

2006-10-27 Thread 张沈鹏
as title, if I has a class like this class Media(models.Model): fileByte = models.IntegerField('文件大小(单位:字节)') fileName = models.CharField('文件名',maxlength='255') class Admin: pass --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: How to auto create a from Model just the Admin do?

2006-10-27 Thread Oliver Lavery
Well, if you simply want to generate forms for your model very easily, check out Manipulators (http://www.djangoproject.com/documentation/forms/). Generating forms for every model in your project completely automatically, like the Admin interface does, involves a bit more than just Manipulators, bu

Re: How to auto create a from Model just the Admin do?

2006-10-30 Thread Cheng Zhang
On Oct 27, 2006, at 9:57 PM, 张沈鹏 wrote: > as title, > if I has a class like this > > class Media(models.Model): >fileByte = models.IntegerField('文件大小(单位:字节)') >fileName = models.CharField('文件名',maxlength='255') >class Admin: pass zsp007: Because English is the default language of t