admin filter for date and datetime using <input>

This commit is contained in:
bkfox
2022-05-05 14:45:23 +02:00
parent 36f5ee8b44
commit e44b77d0b3
5 changed files with 30 additions and 19 deletions

View File

@ -161,7 +161,8 @@ class Page(BasePage):
Category, models.SET_NULL,
verbose_name=_('category'), blank=True, null=True, db_index=True
)
pub_date = models.DateTimeField(blank=True, null=True)
pub_date = models.DateTimeField(
_('publication date'), blank=True, null=True, db_index=True)
featured = models.BooleanField(
_('featured'), default=False,
)