mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-20 16:43:44 +02:00
12 lines
289 B
Python
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"]
|