python Programming Glossary: superfoo
how to override the verbose name of a superclass model field in django http://stackoverflow.com/questions/927729/how-to-override-the-verbose-name-of-a-superclass-model-field-in-django Let's say that I have a model Foo that inherits from SuperFoo class SuperFoo models.Model name models.CharField 'name of SuperFoo.. that I have a model Foo that inherits from SuperFoo class SuperFoo models.Model name models.CharField 'name of SuperFoo instance'.. class SuperFoo models.Model name models.CharField 'name of SuperFoo instance' max_length 50 ... class Foo SuperFoo ... # do something..
|