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-07-06 19:54:36 +02:00

12 lines
284 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"]