Skip to content

Commit

Permalink
fix migration + lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Nov 29, 2023
1 parent 9c67b24 commit fd06739
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion backend/clubs/migrations/0091_cart_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("clubs", "0090_adminnote"),
("clubs", "0090_auto_20230106_1443"),
]

operations = [
Expand Down
15 changes: 10 additions & 5 deletions backend/clubs/migrations/0092_auto_20221118_1424.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,22 @@
class Migration(migrations.Migration):

dependencies = [
('clubs', '0091_cart_ticket'),
("clubs", "0091_cart_ticket"),
]

operations = [
migrations.AlterModelOptions(
name='historicalclub',
options={'get_latest_by': ('history_date', 'history_id'), 'ordering': ('-history_date', '-history_id'), 'verbose_name': 'historical club', 'verbose_name_plural': 'historical clubs'},
name="historicalclub",
options={
"get_latest_by": ("history_date", "history_id"),
"ordering": ("-history_date", "-history_id"),
"verbose_name": "historical club",
"verbose_name_plural": "historical clubs",
},
),
migrations.AlterField(
model_name='historicalclub',
name='history_date',
model_name="historicalclub",
name="history_date",
field=models.DateTimeField(db_index=True),
),
]
2 changes: 1 addition & 1 deletion backend/clubs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1860,4 +1860,4 @@ def user_create(sender, instance, created, **kwargs):
@receiver(models.signals.post_delete, sender=Profile)
def profile_delete_cleanup(sender, instance, **kwargs):
if instance.image:
instance.image.delete(save=False)
instance.image.delete(save=False)
2 changes: 1 addition & 1 deletion backend/clubs/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,4 +554,4 @@ def has_permission(self, request, view):

return True
else:
return request.user.is_authenticated
return request.user.is_authenticated
2 changes: 1 addition & 1 deletion backend/clubs/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2854,4 +2854,4 @@ class WritableClubFairSerializer(ClubFairSerializer):
time = serializers.CharField(required=False, allow_blank=True)

class Meta(ClubFairSerializer.Meta):
pass
pass
2 changes: 1 addition & 1 deletion backend/clubs/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@
urlpatterns += router.urls
urlpatterns += clubs_router.urls
urlpatterns += badges_router.urls
urlpatterns += applications_router.urls
urlpatterns += applications_router.urls
2 changes: 1 addition & 1 deletion backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6395,4 +6395,4 @@ def email_preview(request):
"text_email": text_email,
"variables": json.dumps(initial_context, indent=4),
},
)
)

0 comments on commit fd06739

Please sign in to comment.