Skip to content

Commit

Permalink
[MOD] improve makefile and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samsagaz committed Nov 21, 2021
1 parent 825f8b9 commit d6a206c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ help:
@echo "ps -- show status"
@echo "dockershell -- run bash inside docker"
@echo "shell_plus -- run django shell_plus inside docker"
@echo "load_members_testdata -- populate the DB with members"
@echo "load_providers_test_data -- populate the DB with providers"

RUN=docker-compose exec web
MANAGE=${RUN} ./manage.py
Expand Down
6 changes: 3 additions & 3 deletions website/events/management/commands/load_providers_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
from django.core.management.base import BaseCommand
from events.factories import ProviderFactory
from events.models import Provider
from events.models import Provider


class Command(BaseCommand):
Expand All @@ -18,6 +18,6 @@ def handle(self, *args, **options):
ProviderFactory.create_batch(q)
providers_count = Provider.objects.count() - providers_count
self.stdout.write(
self.style.SUCCESS("Successfully created Providers instances (count %d)"
% providers_count)
self.style.SUCCESS("Successfully created Providers instances (count %d)"
% providers_count)
)

0 comments on commit d6a206c

Please sign in to comment.