haldis/app
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
..
database Change forgotten order_id to order_slug in a few places 2022-05-25 10:29:46 +02:00
hlds Fix formatting 2022-04-19 22:04:49 +02:00
migrations Add migration to add slug DB field to order 2022-05-25 10:29:48 +02:00
models Don't crash on orders that don't have a slug 2022-05-25 10:55:33 +02:00
static Merge pull request #187 from ZeusWPI/feature/invitelink-token 2022-05-20 19:15:20 +02:00
templates Don't crash on orders that don't have a slug 2022-05-25 10:55:33 +02:00
views Don't crash on orders that don't have a slug 2022-05-25 10:55:33 +02:00
__init__.py Fix formatting 2022-04-19 22:04:49 +02:00
add_admins.py Update script to read admins from configuration file 2022-04-19 22:34:06 +02:00
admin.py Change forgotten order_id to order_slug in a few places 2022-05-25 10:29:46 +02:00
app.py Don't crash when rendering None price 2022-05-11 02:43:08 +02:00
config.example.py Change HALDIS_ADMIN_USERS configuration key to the one actually used 2022-05-20 19:32:59 +02:00
create_database.py wsgi is particular about the app object 2022-05-02 18:25:54 +02:00
fatmodels.py Fix pylint on everything 2022-04-19 23:20:03 +02:00
forms.py Add flask factory to scope app variable 2022-04-19 23:59:23 +02:00
login.py Fix formatting 2022-04-19 22:04:49 +02:00
notification.py Don't crash on orders that don't have a slug 2022-05-25 10:55:33 +02:00
parse_hlds.py Fix pylint on everything 2022-04-19 23:20:03 +02:00
passenger_wsgi.py wsgi is particular about the app object 2022-05-02 18:25:54 +02:00
utils.py Don't crash when rendering None price 2022-05-11 02:43:08 +02:00
zeus.py Fix formatting 2022-04-19 22:04:49 +02:00