Hi,
I'm new in Django and now I'm already facing the issue with Model
Inheritance.
Here is my imagination, how the model should like
class Document(models.Model):
name = ...
type = ....
class Media(Document):
link = ....
type = ....
class Meta:
abstract = True
class Image(Media):
size = .....
Is this Model possible? It should only generate two DB tables
(Document and Image), where Image inherits the attributes from Media.
Steve
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---