django-inheritance
Django model inheritance using single DB table - problems accessing subclass from superclass
I am developing a Django application using Oracle with no modifications to DB schema allowed. I have one table in which all Thesis exist, which can be seperated in two disjoint sets: PhdThesis and Bsc[详细]
2023-03-22 03:00 分类:问答Determining Django Model Instance Types after a Query on a Base-class
Is there a way to determine what the \'real\' class of a Django database object is, after it has been returned from a query for on a base class?[详细]
2023-02-15 14:52 分类:问答In django-haystack, how can I use subclasses of models?
I\'m trying to get django-haystack (using a xapian backend) to index my model here for search, by the name and description fields.[详细]
2023-01-20 08:49 分类:问答Help a Python newbie with a Django model inheritance problem
I\'m working on my first real Django project after years of PHP programming, and I am running into a problem with my models.First, I noticed that I was copying and pasting code between the models, and[详细]
2022-12-31 22:35 分类:问答In Django - Model Inheritance - Does it allow you to override a parent model's attribute?
I\'m looking to do this: class Place(models.Model): name = models.CharField(max_length=20) rating = models.DecimalField()[详细]
2022-12-21 04:40 分类:问答