¡@

Home 

python Programming Glossary: categoryproxy

Django proxy model and ForeignKey

http://stackoverflow.com/questions/3891880/django-proxy-model-and-foreignkey

ForeignKey How to make entry.category to be instance of CategoryProxy See code for details class Category models.Model pass class.. class EntryProxy Entry class Meta proxy True class CategoryProxy Category class Meta proxy True entry EntryProxy.objects.get.. entry EntryProxy.objects.get pk 1 entry.category # I want CategoryProxy instance here Cast from Category to CategoryProxy is ok too..