mirror of
https://github.com/Findus23/acronomy.git
synced 2024-09-19 15:33:45 +02:00
13 lines
284 B
Python
13 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"]
|