1
0
Fork 0
mirror of https://github.com/Findus23/acronomy.git synced 2024-09-19 15:33:45 +02:00
acronomy/acros/models/AcroOfTheDay.py

13 lines
289 B
Python
Raw Normal View History

2020-07-06 19:54:36 +02:00
from django.db import models
from acros.models import Acronym
class AcroOfTheDay(models.Model):
acronym = models.ForeignKey(Acronym, on_delete=models.CASCADE)
date = models.DateField()
2020-08-04 17:02:21 +02:00
order = models.SmallIntegerField()
2020-07-06 19:54:36 +02:00
class Meta:
2020-08-04 17:02:21 +02:00
ordering = ["date", "order"]