How to extend models of other applications in Django?

Posted by culebrón on Stack Overflow See other posts from Stack Overflow or by culebrón
Published on 2010-04-21T11:51:05Z Indexed on 2010/04/21 11:53 UTC
Read the original article Hit count: 303

Filed under:
|
|

I have a small app with Category model and want to make a required foreign key referencing it from Photologue Gallery model.

What's the right approach? I can make many-to-many field in Category, but this way it will not be required in Gallery. Use "register" and modify the Gallery model? Inherit it in my app?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models