Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customized the model of installed app in Django?

Right now I was using django_comments_xtd in my site, but I wanna make modifications to the models.py of the installed app django_comments_xtd, make it customized. I just don't know how. I knew I may use something like subclass, but there is a lot of connections in those classes in the models.py, I just wanna overwrite one of them, so how should I do this?

like image 829
Sevenvidia Avatar asked Dec 05 '25 03:12

Sevenvidia


1 Answers

Unfortunately, using subclasses would be the best scenario in this case. Also you could get a local copy of that app and put it in your project files and edit the source directly. I've had to do this on occasion.

Hopefully that helps!

like image 155
dankram Avatar answered Dec 09 '25 14:12

dankram



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!