Created
November 4, 2020 22:43
-
-
Save egitimplus/21ce512ec503a2bcbecb50fafd4ada3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from polymorphic.models import PolymorphicModel | |
class Audio(PolymorphicModel): | |
name = models.CharField(max_length=255) | |
def __str__(self): | |
return self.name | |
class Sony(Audio): | |
pass | |
class Pioneer(Audio): | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment