Skip to content

Commit

Permalink
Merge pull request #510 from shaikhmudassir/master
Browse files Browse the repository at this point in the history
Few Bugs Fixed
  • Loading branch information
ashwin31 authored Oct 10, 2023
2 parents 7560dc2 + 1023b9a commit 829929d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion common/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ class Meta:


class ProfileSerializer(serializers.ModelSerializer):
address = BillingAddressSerializer()

class Meta:
model = Profile
Expand Down
2 changes: 1 addition & 1 deletion teams/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@

urlpatterns = [
path("", views.TeamsListView.as_view()),
path("<int:pk>/", views.TeamsDetailView.as_view()),
path("<str:pk>/", views.TeamsDetailView.as_view()),
]
2 changes: 1 addition & 1 deletion teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def put(self, request, pk, *args, **kwargs):

team_obj.users.clear()
if params.get("assign_users"):
assinged_to_list = json.loads(params.get("assign_users"))
assinged_to_list = params.get("assign_users")
profiles = Profile.objects.filter(
id__in=assinged_to_list, org=request.profile.org
)
Expand Down

0 comments on commit 829929d

Please sign in to comment.