[Answer]-Python django make a subclass use the parents table

1👍

I don’t really understand why you have separate model classes here. You should really just have one class with the different methods. Even better, since these are creation methods, you should define a custom Manager which returns the instantiated Message.

However, if you insist on having separate classes, you should make them proxy models so that they do not reference their own tables:

class MessageJSON(Message):
    class Meta:
        proxy = True

Leave a comment