From 34897d24145cb791cca31cc0afc6291cc92fd73f984877e0635518c2ee0d21aa Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 6 Jul 2022 15:30:12 +0000 Subject: [PATCH] Accepting request 987249 from devel:languages:python:mailman:backports Add missing makemigritions on update OBS-URL: https://build.opensuse.org/request/show/987249 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-postorius?expand=0&rev=40 --- python-postorius.changes | 5 +++++ python-postorius.spec | 1 + 2 files changed, 6 insertions(+) diff --git a/python-postorius.changes b/python-postorius.changes index b0dfe32..5a76c40 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 6 14:30:03 UTC 2022 - Andreas Schneider + +- Add missing makemigritions on update + ------------------------------------------------------------------- Wed Jul 6 13:19:16 UTC 2022 - Ben Greiner diff --git a/python-postorius.spec b/python-postorius.spec index 2968b61..0a6d784 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -217,6 +217,7 @@ popd if ! grep -q "^SECRET_KEY.*" %{postorius_etcdir}/settings_local.py; then echo "SECRET_KEY='$(openssl rand -base64 48)'" >> %{postorius_etcdir}/settings_local.py fi +%{_sbindir}/postorius-manage makemigrations --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings %{_sbindir}/postorius-manage migrate --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings %files -n %{postorius_pkgname}