add a model for days in a month

This commit is contained in:
Andreas Zweili 2017-12-22 23:43:10 +01:00
parent d43215b535
commit 8d94a1edc9
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,9 @@ all month in a year.
#+BEGIN_SRC python :tangle ../inventory/models.py :padline 2
class Weekday(models.Model):
name = models.CharField(max_length=50)
class DayOfMonth(models.Model):
name = models.CharField(max_length=50)
value = models.IntegerField()
def __str__(self):
return self.name