Skip to content

Commit

Permalink
Merge pull request #2249 from gtech-mulearn/dev
Browse files Browse the repository at this point in the history
dev server
  • Loading branch information
nashnsulthan authored Oct 13, 2024
2 parents d339c55 + 4ddeb22 commit a2a1726
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 80 deletions.
77 changes: 0 additions & 77 deletions alter-scripts/alter-1.55.py

This file was deleted.

2 changes: 1 addition & 1 deletion api/dashboard/ig/dash_ig_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class InterestGroupSerializer(serializers.ModelSerializer):
updated_by = serializers.CharField(source='updated_by.full_name')
created_by = serializers.CharField(source='created_by.full_name')
members = serializers.SerializerMethodField()
category = serializers.ChoiceField(choices=["maker", "software", "creative", "management", "others"])
category = serializers.ChoiceField(choices=["hardware", "coder", "creative", "manager", "others"])
class Meta:
model = InterestGroup
fields = [
Expand Down
2 changes: 1 addition & 1 deletion api/dashboard/user/dash_user_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class UserOrgLinkSerializer(serializers.ModelSerializer):
department = serializers.PrimaryKeyRelatedField(
queryset=Department.objects.all(), required=False
)
graduation_year = serializers.CharField(required=False)
graduation_year = serializers.CharField(required=False,allow_null=True)
organization = serializers.PrimaryKeyRelatedField(
queryset=Organization.objects.all(), many=False, required=True
)
Expand Down
3 changes: 2 additions & 1 deletion api/register/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def update(self, instance, validated_data):

def validate_choosen_interests(self, interests):
if not all(
interest in ("maker", "software", "creative", "management", "others")
interest in ("hardware", "coder", "creative", "manager", "others")
for interest in interests
):
raise serializers.ValidationError("Invalid interests selected.")
Expand All @@ -465,6 +465,7 @@ def validate_choosen_endgoals(self, end_goals):
"higher_education",
"gig_work",
"entrepreneurship",
"r&d",
"others",
)
for goal in end_goals
Expand Down

0 comments on commit a2a1726

Please sign in to comment.