djangosnippets.org: Latest snippets tagged with 'common'https://djangosnippets.org/tags/common/2007-07-19T15:14:40.152581-05:00DRY with common model fields (another way)
2007-07-19T15:14:40.152581-05:00jmrbcuhttps://djangosnippets.org/snippets/329/<p>Some time you want to add some common fields to a group of models, for example, in a <strong>Generalization/Specialization</strong> relationship. One could have a base model as the generalization class and specialized models with a foreign key to that base model with an unique attribute but I don't like it …</p>
Freely redistributable