Skip to content

Commit

Permalink
Trunk linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
fsargent committed Jul 23, 2024
1 parent bd25696 commit 9d345b3
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 9 deletions.
21 changes: 18 additions & 3 deletions approval_polls/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,18 @@ class Migration(migrations.Migration):
primary_key=True,
),
),
("ballot", models.ForeignKey(on_delete=models.CASCADE, to="approval_polls.Ballot")),
("choice", models.ForeignKey(on_delete=models.CASCADE, to="approval_polls.Choice")),
(
"ballot",
models.ForeignKey(
on_delete=models.CASCADE, to="approval_polls.Ballot"
),
),
(
"choice",
models.ForeignKey(
on_delete=models.CASCADE, to="approval_polls.Choice"
),
),
],
),
migrations.AddField(
Expand All @@ -78,6 +88,11 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="ballot",
name="poll",
field=models.ForeignKey(on_delete=models.CASCADE, blank=True, to="approval_polls.Poll", null=True),
field=models.ForeignKey(
on_delete=models.CASCADE,
blank=True,
to="approval_polls.Poll",
null=True,
),
),
]
4 changes: 3 additions & 1 deletion approval_polls/migrations/0002_poll_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="poll",
name="user",
field=models.ForeignKey(on_delete=models.CASCADE, default=0, to=settings.AUTH_USER_MODEL),
field=models.ForeignKey(
on_delete=models.CASCADE, default=0, to=settings.AUTH_USER_MODEL
),
preserve_default=False,
),
]
7 changes: 6 additions & 1 deletion approval_polls/migrations/0003_ballot_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="ballot",
name="user",
field=models.ForeignKey(on_delete=models.CASCADE, blank=True, to=settings.AUTH_USER_MODEL, null=True),
field=models.ForeignKey(
on_delete=models.CASCADE,
blank=True,
to=settings.AUTH_USER_MODEL,
null=True,
),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ class Migration(migrations.Migration):
),
(
"ballot",
models.ForeignKey(on_delete=models.CASCADE,
blank=True, to="approval_polls.Ballot", null=True
models.ForeignKey(
on_delete=models.CASCADE,
blank=True,
to="approval_polls.Ballot",
null=True,
),
),
],
Expand Down
7 changes: 6 additions & 1 deletion approval_polls/migrations/0012_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ class Migration(migrations.Migration):
),
),
("zipcode", models.CharField(max_length=5)),
("user", models.ForeignKey(on_delete=models.CASCADE, to=settings.AUTH_USER_MODEL)),
(
"user",
models.ForeignKey(
on_delete=models.CASCADE, to=settings.AUTH_USER_MODEL
),
),
],
),
]
Binary file modified approval_polls/staticfiles/images/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/ces-horizontal-stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/ces-logomark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/ces-rectangle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified approval_polls/staticfiles/images/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion approval_polls/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,9 @@ def test_private_poll_different_user(self):
response = self.client.get(reverse("my_polls"))
self.assertEqual(response.status_code, 200)
self.assertQuerySetEqual(
response.context["latest_poll_list"], [repr(self.public_poll)], transform=repr
response.context["latest_poll_list"],
[repr(self.public_poll)],
transform=repr,
)


Expand Down

0 comments on commit 9d345b3

Please sign in to comment.