Verified Commit 95770e47 authored by Joshua M. Boniface's avatar Joshua M. Boniface Committed by Agate

Override default lookup_value_regex to allow `.` in usernames

parent 80084f11
Pipeline #1872 failed with stages
in 25 seconds
......@@ -27,6 +27,8 @@ class UserViewSet(mixins.UpdateModelMixin, viewsets.GenericViewSet):
queryset = models.User.objects.all()
serializer_class = serializers.UserWriteSerializer
lookup_field = "username"
# lookup_value_regex = "[^/.]"
lookup_value_regex = "[^/]+"
@list_route(methods=["get"])
def me(self, request, *args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment