Commit 3b887780 authored by Joshua M. Boniface's avatar Joshua M. Boniface

Override default lookup_value_regex to allow `.` in usernames

parent e8a3546f
Pipeline #1871 failed with stages
in 36 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