mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-05 05:05:17 +02:00
fix: Update URL path regex in StatsViewSet for username counts action
This commit is contained in:
parent
00e4ec64ae
commit
3e0639e6f7
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class StatsViewSet(viewsets.ViewSet):
|
|||
"""
|
||||
A simple ViewSet for listing the stats of a user.
|
||||
"""
|
||||
@action(detail=False, methods=['get'], url_path='counts/(?P<username>[^/.]+)')
|
||||
@action(detail=False, methods=['get'], url_path='counts/(?P<username>[^/]+)')
|
||||
def counts(self, request, username):
|
||||
if request.user.username == username:
|
||||
user = get_object_or_404(User, username=username)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue