How can I set TimeField format in django models to be [min:sec] like for an audio track?
class Song(models.Model):
title = models.CharField(max_length=128)
duration = models.TimeField(null=True)
How can I set TimeField format in django models to be [min:sec] like for an audio track?
class Song(models.Model):
title = models.CharField(max_length=128)
duration = models.TimeField(null=True)
Copyright © 2021 Jogjafile Inc.
Create form.py in app and inherit this form in view also if you want to use same concept in admin then also inherit in django admin