Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
aashishvinu committed Dec 2, 2023
2 parents 90ca6b2 + aca349c commit a103b92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion api/dashboard/affiliation/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Meta:
fields = ['id','title','organization_count', 'created_by', 'updated_by']

def get_organization_count(self,obj):
return obj.organizations.count()
return obj.organization_affiliation.count()



Expand Down
6 changes: 2 additions & 4 deletions api/dashboard/lc/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

urlpatterns = [
path('user-list/', dash_lc_view.UserLearningCircleListApi.as_view(), name='main'), # list all lc's of user
# URL issue
path('list-all/<str:circle_code>/', dash_lc_view.TotalLearningCircleListApi.as_view(), name='list-all-search'),
path('<str:circle_id>/details/', dash_lc_view.LearningCircleDetailsApi.as_view(), name='lc-detailed'), # individual ls details
# dashboard search listing
path('<str:circle_id>/schedule-meet/', dash_lc_view.ScheduleMeetAPI.as_view(), name='schedule-meet'),
Expand All @@ -22,8 +20,8 @@

# TODO: new api for note updation
# path('<str:circle_id>/note/edit/', dash_lc_view.LearningCircleLeadTransfer.as_view(), name='edit-note'),

path('<str:circle_id>/<str:member_id>/', dash_lc_view.LearningCircleDetailsApi.as_view()), # user accept or reject, also for removal
path('<str:circle_id>/user-accept-reject/<str:member_id>/', dash_lc_view.LearningCircleDetailsApi.as_view()), # user accept or reject, also for removal
path('list-all/<str:circle_code>/', dash_lc_view.TotalLearningCircleListApi.as_view(), name='list-all-search'),
path('list/', dash_lc_view.LearningCircleMainApi.as_view(), name='list'), # public page listing
path('list-all/', dash_lc_view.TotalLearningCircleListApi.as_view(), name='list-all'), # dashboard search listing

Expand Down

0 comments on commit a103b92

Please sign in to comment.