Skip to content

Commit

Permalink
fix: rename counseling to counselling
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhruv9449 committed Apr 28, 2024
1 parent 2d91e49 commit cea1681
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class OrganizationViewSet(ReadOnlyModelViewSet):
search_fields = ["name"]
ordering_fields = ["name"]
ordering = ["name"]
special_organization_types = ["student_welfare", "student_council", "greviance_cell", "counseling_division"]
special_organization_types = ["student_welfare", "student_council", "greviance_cell", "counselling_division"]

def get_serializer_class(self):
if (self.action == "list") and (
Expand Down Expand Up @@ -102,7 +102,7 @@ def get(request):
status=status.HTTP_400_BAD_REQUEST,
)

if organization_type in ["student_welfare", "student_council", "greviance_cell", "counseling_division"]:
if organization_type in ["student_welfare", "student_council", "greviance_cell", "counselling_division"]:
return Response(
{"detail": "Special organizations type parameter not allowed"},
status=status.HTTP_400_BAD_REQUEST,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.0.10 on 2024-04-28 06:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0019_alter_organization_description'),
]

operations = [
migrations.AlterField(
model_name='organization',
name='type',
field=models.CharField(choices=[('student_welfare', 'Student Welfare'), ('student_council', 'Student Council'), ('club', 'Club'), ('chapter', 'Chapter'), ('team', 'Team'), ('greviance_cell', 'Greviance Cell'), ('counselling_division', 'Counselling Division'), ('other', 'Other')], default='club', max_length=50, verbose_name='Type'),
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Organization(models.Model):
("chapter", "Chapter"),
("team", "Team"),
("greviance_cell", "Greviance Cell"),
("counseling_division", "Counseling Division"),
("counselling_division", "Counselling Division"),
("other", "Other"),
]

Expand Down

0 comments on commit cea1681

Please sign in to comment.