haldis/app/models
Midgard ff0ea068de
Don't crash on orders that don't have a slug
Orders created before we introduced slugs don't have a slug. This commit
introduces code to work with them. Without these changes, the legacy
orders are not reachable any more, and trying to create a link for them,
crashes the page.

I wrote this commit because in my test environment I had a long-lived
order for testing purposes, and the home page crashed because the order
would show up in the list of Open Orders.
2022-05-25 10:55:33 +02:00
..
__init__.py Remove old, database-based models 2020-01-26 02:13:02 +01:00
anonymous_user.py Fix pylint for models files 2019-09-12 20:50:17 +02:00
database.py Fix pylint for models files 2019-09-12 20:50:17 +02:00
order.py Don't crash on orders that don't have a slug 2022-05-25 10:55:33 +02:00
orderitem.py change url usage to unique 7char slugs 2022-05-20 19:04:22 +02:00
orderitemchoice.py Fix formatting 2022-04-19 22:04:49 +02:00
user.py Fix formatting 2022-04-19 22:04:49 +02:00