Skip to content

Commit

Permalink
- add descriptions
Browse files Browse the repository at this point in the history
- revert taskfile
  • Loading branch information
elipe17 committed Aug 21, 2024
1 parent aa5f0af commit 8bf260b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tasks:
- docker-compose exec bash sh -c "python ./django508/manage.py migrate"
- docker-compose exec bash sh -c "python ./django508/manage.py upsert_admin_user --username admin --email [email protected] --password fakepassword"
- docker-compose exec bash sh -c "python ./django508/manage.py create_dummy_models"
- docker-compose down

up:
desc: Start web server
Expand Down
4 changes: 2 additions & 2 deletions django508/tests/management/commands/create_dummy_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ def handle(self, *args, **options):
d2_names = ["Bob", "John", "Jill", "Jessica"]
admin_user = User.objects.get(username='admin')
for n1, n2 in zip(d_names, d2_names):
DummyModel.objects.create(name=n1, description="", user=admin_user)
DummyModel2.objects.create(name=n2, description="", user=admin_user)
DummyModel.objects.create(name=n1, description=f"This is {n1}'s description field.", user=admin_user)
DummyModel2.objects.create(name=n2, description=f"This is {n2}'s description field.", user=admin_user)

0 comments on commit 8bf260b

Please sign in to comment.