I have a django application in which I want to use model inheritance. The application contains one super model class Article
and here is its code
class Article(models.Model):
english_title = CharField(max_length=200)
arabic_title = CharField(max_length=200)
english_body = HTMLField()
arabic_body = HTMLField()
enabled = BooleanField()
def __unicode__(self):
return self.english_title
def get_body(self, locale):
if locale == "ar" :
return self.arabic_body
else:
return self.english_body
def get_title(self, locale):
if locale == "ar" :
return self.arabic_title
else:
return self.english_title
and there is a child class called History
which extends this class and here is its code
class History(Article, IHasAttachments):
date = DateField(auto_now_add=True)
My problem appears in the admin application where the dateField (date) in the History model does not appear in the admin form when inserting new entry.
NOTE: I am using django-tinymce, djnago-filebrowser, and django-grappelli
What would be the problem?