diff --git a/approval_polls/migrations/0001_initial.py b/approval_polls/migrations/0001_initial.py index bc15bbb..76f1310 100644 --- a/approval_polls/migrations/0001_initial.py +++ b/approval_polls/migrations/0001_initial.py @@ -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( @@ -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, + ), ), ] diff --git a/approval_polls/migrations/0002_poll_user.py b/approval_polls/migrations/0002_poll_user.py index 5453938..0b2cbfd 100644 --- a/approval_polls/migrations/0002_poll_user.py +++ b/approval_polls/migrations/0002_poll_user.py @@ -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, ), ] diff --git a/approval_polls/migrations/0003_ballot_user.py b/approval_polls/migrations/0003_ballot_user.py index 76ca68b..5e5428c 100644 --- a/approval_polls/migrations/0003_ballot_user.py +++ b/approval_polls/migrations/0003_ballot_user.py @@ -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, + ), ), ] diff --git a/approval_polls/migrations/0010_voteinvitation_poll_is_private.py b/approval_polls/migrations/0010_voteinvitation_poll_is_private.py index b20a847..7ad55b5 100644 --- a/approval_polls/migrations/0010_voteinvitation_poll_is_private.py +++ b/approval_polls/migrations/0010_voteinvitation_poll_is_private.py @@ -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, ), ), ], diff --git a/approval_polls/migrations/0012_subscription.py b/approval_polls/migrations/0012_subscription.py index b20b42b..bd4926a 100644 --- a/approval_polls/migrations/0012_subscription.py +++ b/approval_polls/migrations/0012_subscription.py @@ -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 + ), + ), ], ), ] diff --git a/approval_polls/staticfiles/images/android-chrome-192x192.png b/approval_polls/staticfiles/images/android-chrome-192x192.png index 1aa6222..7990758 100644 Binary files a/approval_polls/staticfiles/images/android-chrome-192x192.png and b/approval_polls/staticfiles/images/android-chrome-192x192.png differ diff --git a/approval_polls/staticfiles/images/android-chrome-512x512.png b/approval_polls/staticfiles/images/android-chrome-512x512.png index fa04fe9..3e2aa40 100644 Binary files a/approval_polls/staticfiles/images/android-chrome-512x512.png and b/approval_polls/staticfiles/images/android-chrome-512x512.png differ diff --git a/approval_polls/staticfiles/images/apple-touch-icon.png b/approval_polls/staticfiles/images/apple-touch-icon.png index b80551d..c5971e6 100644 Binary files a/approval_polls/staticfiles/images/apple-touch-icon.png and b/approval_polls/staticfiles/images/apple-touch-icon.png differ diff --git a/approval_polls/staticfiles/images/ces-horizontal-stack-reverse.png b/approval_polls/staticfiles/images/ces-horizontal-stack-reverse.png index 261e484..7585871 100644 Binary files a/approval_polls/staticfiles/images/ces-horizontal-stack-reverse.png and b/approval_polls/staticfiles/images/ces-horizontal-stack-reverse.png differ diff --git a/approval_polls/staticfiles/images/ces-horizontal-stack.png b/approval_polls/staticfiles/images/ces-horizontal-stack.png index 1a5add7..94d5917 100644 Binary files a/approval_polls/staticfiles/images/ces-horizontal-stack.png and b/approval_polls/staticfiles/images/ces-horizontal-stack.png differ diff --git a/approval_polls/staticfiles/images/ces-logomark.png b/approval_polls/staticfiles/images/ces-logomark.png index fe47736..da5b9a1 100644 Binary files a/approval_polls/staticfiles/images/ces-logomark.png and b/approval_polls/staticfiles/images/ces-logomark.png differ diff --git a/approval_polls/staticfiles/images/ces-rectangle.png b/approval_polls/staticfiles/images/ces-rectangle.png index 04a22a2..bdb2b90 100644 Binary files a/approval_polls/staticfiles/images/ces-rectangle.png and b/approval_polls/staticfiles/images/ces-rectangle.png differ diff --git a/approval_polls/staticfiles/images/favicon-16x16.png b/approval_polls/staticfiles/images/favicon-16x16.png index c615abf..cbf5bc6 100644 Binary files a/approval_polls/staticfiles/images/favicon-16x16.png and b/approval_polls/staticfiles/images/favicon-16x16.png differ diff --git a/approval_polls/staticfiles/images/favicon-32x32.png b/approval_polls/staticfiles/images/favicon-32x32.png index 28b98c0..1796ba8 100644 Binary files a/approval_polls/staticfiles/images/favicon-32x32.png and b/approval_polls/staticfiles/images/favicon-32x32.png differ diff --git a/approval_polls/tests.py b/approval_polls/tests.py index 2556e73..cdda12c 100644 --- a/approval_polls/tests.py +++ b/approval_polls/tests.py @@ -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, )