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
2020-08-04 17:02:21 +02:00

12 lines
289 B
Python

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()
order = models.SmallIntegerField()
class Meta:
ordering = ["date", "order"]