fix ordering of PosReports
This commit is contained in:
parent
c2abdfc89f
commit
adf9dcd8d8
16
src/economy/migrations/0015_auto_20200813_2345.py
Normal file
16
src/economy/migrations/0015_auto_20200813_2345.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Generated by Django 3.1 on 2020-08-13 21:45
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("economy", "0014_posreport_comments"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="posreport", options={"ordering": ["date", "pos"]},
|
||||
),
|
||||
]
|
|
@ -517,6 +517,9 @@ class Pos(CampRelatedModel, UUIDModel):
|
|||
class PosReport(CampRelatedModel, UUIDModel):
|
||||
"""A PosReport contains the HAX/DKK counts and the csv report from the POS system."""
|
||||
|
||||
class Meta:
|
||||
ordering = ["date", "pos"]
|
||||
|
||||
pos = models.ForeignKey(
|
||||
"economy.Pos",
|
||||
on_delete=models.PROTECT,
|
||||
|
|
Loading…
Reference in a new issue