[Answer]-Get username in url [Django] [mongoengine]

1👍

If MongoEngine can’t simulate joins, it is very simple to do this in two separate queries:

def get_queryset(self):
    user = User.objects.get(username=self.kwargs['username'])
    return self.model.objects(user=user.id)

Leave a comment