I'm currently doing a small project in Django (2.2.5) and djangorestframework (3.10.3). I'm having a problem getting the view connected to the router. I'd really appreciate a second pair of eyes to help me try to figure out what is wrong

For the urls I have tried the following 2:

```
router = routers.DefaultRouter()
router.register(r'<chatroom>', views.ChatRoomViewSet)
router.register(r'<str:chatroom>', views.ChatRoomViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('api-auth/', include('rest_framework.urls',namespace='rest_framework')),
    path('admin/', admin.site.urls),
]

```

and then added the router to urlpatterns.

The viewset is:

```
class ChatRoomViewSet(viewsets.ModelViewSet):

    queryset = ChatRoom.objects.all().order_by('name')
    serializer_class = ChatRoomSerializer
    lookup_field = 'name'

    def get_viewset(self, request, name=None):
        name = self.kwargs.get('name', None)
        queryset = ChatRoom.objects.filter(name=name)
        return queryset

```

And the serializer is

```
class ChatRoomSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = ChatRoom
        fields = ['url', 'name']
        lookup_field = 'name'

```

The model is:

```
class ChatRoom(models.Model):
    name = models.CharField(max_length=255, default="")

    def __str__(self):
        return self.name

```

Is there something I obviously missed?