Commit 126f7201 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/611' into 'master'

Fix import errors during production docker build

Closes #611

See merge request !762
parents 864712de bc654df1
......@@ -2,7 +2,7 @@
set -e
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/ -j $(nproc)
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l'; do
>&2 echo "PostgreSQL is unavailable: Sleeping"
......
......@@ -3,7 +3,7 @@
set -e
>&2 echo "Creating Sphinx documentation"
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/ -j $(nproc)
sphinx-build -b html /usr/src/app/docs/ /concrexit/docs/
until psql -h "$DJANGO_POSTGRES_HOST" -U "postgres" -c '\l' $POSTGRES_DB; do
>&2 echo "PostgreSQL is unavailable: Sleeping"
......
......@@ -53,7 +53,7 @@ class _ProfileFactory(factory.Factory):
address_postal_code = factory.LazyAttribute(lambda x: _faker.postcode())
address_city = factory.LazyAttribute(lambda x: _faker.city())
phone_number = '+31' + _faker.numerify(text="##########")
phone_number = '+31{}'.format(_faker.numerify(text="##########"))
class Command(BaseCommand):
......@@ -267,7 +267,10 @@ class Command(BaseCommand):
partner = Partner()
partner.is_active = random.random() < 0.75
partner.name = _faker.company() + ' ' + _faker.company_suffix()
partner.name = '{} {}'.format(
_faker.company(),
_faker.company_suffix()
)
partner.slug = _faker.slug()
partner.link = _faker.uri()
......
Supports Markdown
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