I have a model with these attributes:
class MyModel(models.Model):
name = models.CharField(max_length=250, blank=False, null=False)
timestamp = models.BigIntegerField(default=0)
def save(self, *args, **kwargs):
self.timestamp = get_timestamp_in_milli()
super(MyModel, self).save(*args, **kwargs)
In my admin.py
I have declared AdminModel with this model:
@admin.register(MyModel)
class MyModelAdmin(admin.ModelAdmin):
pass
Is there any calendar like filter, where I can filter range of my timestamp? If yes how to include it?
I know that there is also filter based on DateField
, is it possible to make timestamp filterable as DateFiled
?