SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 7a8f155e authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add subsidy payment sorting

parent bea92b42
No related branches found
No related tags found
No related merge requests found
# Generated by Django 4.2.10 on 2024-06-26 17:18
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("finances", "0044_remove_subsidy_algorithm_and_more"),
]
operations = [
migrations.AlterModelOptions(
name="subsidypayment",
options={"ordering": ["date_scheduled", "reference", "amount"]},
),
]
......@@ -33,6 +33,9 @@ class SubsidyPayment(models.Model):
objects = SubsidyPaymentQuerySet.as_manager()
class Meta:
ordering = ["date_scheduled", "reference", "amount"]
def __str__(self):
return f"payment {self.reference} for {self.subsidy}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment