jhonny-cache not invalidating "super" model in case of non-abstract inheritance

Issue #68 new
Salvatore Iovene
created an issue

Hi, I have a base mode called Gear:

class Gear(models.Model):
    name = models.CharField...
    make = models.CharField...

Then a number of models that inherit from that one:

class Telescope(Gear)
class Camera(Gear)
class Software(Gear)

... and so on.

Whenever I need to deal purely with the common attribute of all gear items, that is name and make, I do queries on Gear.

The problem is that whenever a Telescope or something else is created, the cache for Gear queries is not invalidated.

Should johnny-cache do it? Should I? If so, how? Thanks!

Comments (0)

  1. Log in to comment