-
I have models like this:
```
class SubUnit(models.Model):
# .... some fields
class Task(models.Model):
"""
Base class for lessons/exercises - ordered items within a sub-unit
"""
s…
-
More precisely, automatic event-based doesn't work properly for it. There are actually two different cases:
1. When SubModel instance is added, changed or deleted none of BaseModel queries invalidated…
-
For cases like where `@depend_on_related('myapp.MultiTableModel', foreign_key='some')` is used in a multi-table inheritance setting, when the foreign key field `some` is actually in the parent model o…
-
Hello. I've caught a problem with multi-table inheritance (for example see https://docs.djangoproject.com/en/1.8/topics/db/models/#multi-table-inheritance)
When I tried to invoke `bulk_update(Restaur…
-
I have a few models that inherit from a parent one, for example:
```
class ContentItem(models.Model):
class Meta:
ordering = ['position']
content_group = models.ForeignKey(ContentG…
-
Multi-table inheritance ( https://docs.djangoproject.com/en/1.7/topics/db/models/#multiple-inheritance ) with Versionable is not possible.
Just to make it clear, multi-table inheritance is when you d…
-
```
There are two ways to have model inheritance in Django, and they are
described in http://docs.djangoproject.com/en/dev/topics/db/models/#id4.
The first one is abstract base classes, and the second…
-
`django-admin makemigrations` gives these errors when you add a `Meta.indexes = [...]` on a base model:
```
myapp.SpecificThing: (models.E016) 'indexes' refers to field 'permissions' which is not lo…
-
When I showed the `Vote`, `PostVote`, and `CommentVote` models to some of my colleagues (as part of a discussion about the viability of model inheritance in Django), there was some criticism of the ex…
-
Consider the following models:
class OrderGood(models.Model):
pass
class SupplyOrderGoodServiceBase(models.Model):
supplier_price = models.DecimalField(max_di…