Skip to content

Commit

Permalink
Black it all
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Oct 16, 2023
1 parent 8ccaa99 commit 4c09587
Show file tree
Hide file tree
Showing 310 changed files with 2 additions and 328 deletions.
1 change: 0 additions & 1 deletion apps/approval/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def to_internal_value(self, data):


class MembershipApprovalSerializer(serializers.ModelSerializer):

field_of_study = ChoiceField(choices=FieldOfStudyType.choices)

class Meta:
Expand Down
1 change: 0 additions & 1 deletion apps/approval/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def perform_create(self, serializer):


class MembershipApprovalViewSet(ModelViewSet):

permission_classes = (IsAuthenticated,)
schema = AutoSchema(tags=["Membership Applications"])
serializer_class = MembershipApprovalSerializer
Expand Down
1 change: 0 additions & 1 deletion apps/approval/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@login_required
@permission_required("approval.view_membershipapproval", return_403=True)
def index(request):

# Generic check to see if user has access to dashboard. (Is staff or superuser)
if not has_access(request):
raise PermissionDenied
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = []

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0002_auto_20150218_2217.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("approval", "0001_initial"),
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0003_auto_20151015_0016.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0002_auto_20150218_2217")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0004_auto_20160309_2133.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0003_auto_20151015_0016")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0005_auto_20160906_1703.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0004_auto_20160309_2133")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0006_auto_20170814_0402.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Migration(migrations.Migration):

dependencies = [
("auth", "0008_alter_user_username_max_length"),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0007_auto_20180404_1923.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0006_auto_20170814_0402")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0008_auto_20190506_1719.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0007_auto_20180404_1923")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0009_auto_20200229_1046.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0008_auto_20190506_1719")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0010_auto_20200321_1924.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0045_auto_20200222_1436"),
("approval", "0009_auto_20200229_1046"),
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0011_auto_20200328_1032.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0010_auto_20200321_1924")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0012_auto_20200330_0903.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0011_auto_20200328_1032")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0013_manual_m2m_to_through.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class Migration(migrations.Migration):

dependencies = [("approval", "0012_auto_20200330_0903")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/approval/migrations/0014_auto_20210912_1610.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("approval", "0013_manual_m2m_to_through"),
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@


class Migration(migrations.Migration):

dependencies = [
("approval", "0014_auto_20210912_1610"),
]
Expand Down
1 change: 0 additions & 1 deletion apps/article/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class ArticleAdmin(VersionAdmin):

# set the created and changed by fields
def save_model(self, request, obj, form, change):

obj.changed_by = request.user

if not change:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Migration(migrations.Migration):

replaces = [
("article", "0001_initial"),
("article", "0002_auto_20150218_2217"),
Expand Down
1 change: 0 additions & 1 deletion apps/article/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def archive_month(request, year, month):


def details(request, article_id, article_slug):

article = get_object_or_404(Article, pk=article_id)

if article.changed_date != article.created_date:
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def form_valid(self, form):
@login_required
@permission_required("authentication.view_membership", return_403=True)
def members_index(request):

"""
Index overview for memberships in dashboard
"""
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class Migration(migrations.Migration):

dependencies = [("auth", "0001_initial")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0002_auto_20150304_2211.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("sso", "0002_auto_20171127_1304"),
("authentication", "0001_initial"),
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0003_auto_20150311_2105.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0002_auto_20150304_2211")]

operations = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0003_auto_20150311_2105")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0005_onlineuser_jobmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0004_onlineuser_online_mail")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0006_jobmail_set_true.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ def set_jobmail_field(apps, schema_editor):


class Migration(migrations.Migration):

dependencies = [("authentication", "0005_onlineuser_jobmail")]

operations = [migrations.RunPython(set_jobmail_field)]
1 change: 0 additions & 1 deletion apps/authentication/migrations/0007_auto_20151014_2010.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0006_jobmail_set_true")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0007_onlineuser_bio.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0006_jobmail_set_true")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0008_auto_20151014_2027.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0007_auto_20151014_2010")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0008_auto_20151014_2156.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0007_onlineuser_bio")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0009_auto_20151014_2031.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0008_auto_20151014_2027")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0009_auto_20151016_2033.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0008_auto_20151014_2156")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0009_onlineuser_saldo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0008_auto_20151014_2156")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0010_auto_20151014_2058.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0009_auto_20151014_2031")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0011_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0009_auto_20151016_2033"),
("authentication", "0010_auto_20151014_2058"),
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0012_auto_20151021_2008.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0011_merge")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0013_auto_20151022_0028.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0012_auto_20151021_2008")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0014_auto_20151214_0117.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0013_auto_20151022_0028")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0014_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0013_auto_20151022_0028"),
("authentication", "0009_onlineuser_saldo"),
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0015_auto_20160123_1633.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0014_merge")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0016_auto_20160123_1658.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0015_auto_20160123_1633")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0017_auto_20160128_1719.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0016_auto_20160123_1658")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0018_auto_20160224_2050.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0017_auto_20160128_1719")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0018_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0014_auto_20151214_0117"),
("authentication", "0017_auto_20160128_1719"),
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0019_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [
("authentication", "0018_auto_20160224_2050"),
("authentication", "0018_merge"),
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0020_auto_20160309_2133.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0019_merge")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0021_auto_20160331_0940.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0020_auto_20160309_2133")]

operations = [
Expand Down
1 change: 0 additions & 1 deletion apps/authentication/migrations/0022_auto_20160714_1347.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class Migration(migrations.Migration):

dependencies = [("authentication", "0021_auto_20160331_0940")]

operations = [
Expand Down
Loading

0 comments on commit 4c09587

Please sign in to comment.