Closed adamchainz closed 7 years ago
With lots of switches it's nice to know when it was created. Add a created_time field to Switch that auto-fills with timezone.now on creation, and display it in nexus.
created_time
Switch
timezone.now
Can't get what do you mean. Switch model already has date_created = models.DateTimeField(default=now) and it's displayed at switches list:
date_created = models.DateTimeField(default=now)
Yeah my bad. I don't know what I was thinking.
With lots of switches it's nice to know when it was created. Add a
created_time
field toSwitch
that auto-fills withtimezone.now
on creation, and display it in nexus.