Commit 293ab4f3 authored by Joren Vrancken's avatar Joren Vrancken

Order the Pizza Events on the order date

parent 3da9bd6a
# Generated by Django 2.2.6 on 2019-11-29 15:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('pizzas', '0010_payment_registration'),
]
operations = [
migrations.AlterModelOptions(
name='pizzaevent',
options={'ordering': ('-start',)},
),
]
......@@ -133,6 +133,9 @@ class PizzaEvent(models.Model):
def __str__(self):
return 'Pizzas for ' + str(self.event)
class Meta:
ordering = ('-start',)
class AvailableProductManager(models.Manager):
"""Only shows available products"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment