diff --git a/MANIFEST.in b/MANIFEST.in index fc2307f..cedf581 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,6 +6,7 @@ include src/postorius/doc/Makefile include tox.ini recursive-include example_project *.py *.cfg *.rst *.txt +exclude example_project/settings_local.py prune example_project/venv prune example_project/static graft src/postorius/tests/fixtures diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 889d2e1..ab82bd2 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -90,7 +90,7 @@ 'invalid': _('Please enter a valid domain name.')}, required=True, queryset=Site.objects.order_by("name").all(), - initial=Site.objects.get_current(), + initial=lambda: Site.objects.get_current(), help_text=_get_web_host_help, )