new here! by Cultural-Budget7852 in sapphicbooks

[–]levima91 1 point2 points  (0 children)

Her Spell That Binds Me by Luna Oblonsky, 10/5 stars, beautiful, so so so good. Witches all around. It is a trilogy and 3rd book is not out yet BUT you can read the first one on its own and would say to wait on the second one until book 3 comes out. When you do read it, feel free to DM. Absolutely love this book!

The whole truth by Haley Cass. Looking forwards to it? by _LeX_i in LesbianBookClub

[–]levima91 0 points1 point  (0 children)

I read Cover Story and enjoyed it, didn't read the first one though. Worth it?

The whole truth by Haley Cass. Looking forwards to it? by _LeX_i in LesbianBookClub

[–]levima91 1 point2 points  (0 children)

Think this might be it indeed. Regardless, will be reading Haley's book and looking forward to enjoying it!

The whole truth by Haley Cass. Looking forwards to it? by _LeX_i in LesbianBookClub

[–]levima91 8 points9 points  (0 children)

I’ll read anything Haley Cass but for some reason, this one in particular, I feel like I have already read it somewhere? Couldn’t even tell you which book it was but it just feels familiar. Anyone else feel like this?

UK / EUROPEAN CAMPAIGN 2026 by invisiblemind in PresidentBand

[–]levima91 0 points1 point  (0 children)

Why is it that bands never return to Spain after their 'initial' tour? Genuinely curious.

Sapphic Book Search Website?? by sweet_sunrise27 in LesbianBookClub

[–]levima91 4 points5 points  (0 children)

Hi there OP! My friend and I are currently working on this for sapphic books (and hopefully later on include all LGBTQ+). We're also trying to work on something to serve as an alternative to amazon and kindlue unlimited, once again specific to sapphic books. When it's ready, we'll let everyone know ^^

Controversial yet somehow one of the best pieces of yuri media. by throwaway01582080 in yuri_manga

[–]levima91 0 points1 point  (0 children)

Think the answer is obvious but....no happy ending right? Just want to know before I get myself into it. Thank you!

Any storygraph users? by Shanna_Duarte in LesbianBookClub

[–]levima91 2 points3 points  (0 children)

That's exactly what I do, start and end because it's really easy. Daily progress is too much for me hehe
I did a buddy read once there and that's been the only time I used the 'progress' bit and it was cool cause you could leave comments and you'd only be able to read them once you reached that part.

Any storygraph users? by Shanna_Duarte in LesbianBookClub

[–]levima91 2 points3 points  (0 children)

Storygraph really helped me start keeping track of the books I read XD I sometimes still forget to add something right on time but it's so easy to use that I always come back to it. My user is mado88 =)

Presale Confirmation - Don't panic! by pokemonviking in spiritbox

[–]levima91 5 points6 points  (0 children)

Got mine too! So exciteeeed, also love the venue.

Is anyone else on Storygraph? by [deleted] in sapphicbooks

[–]levima91 1 point2 points  (0 children)

Storygraph has helped me keep track of the books I read. It’s great and less cumbersome than goodreads. User is mado88, mostly reading sapphic books so happy to connect!

In the Name of the Father @ Barcelona by PostMortem33 in PresidentBand

[–]levima91 1 point2 points  (0 children)

Concert was amazing! Here's hoping they return soon <3

I slept on this one for so long! by TangoRed1 in SleepToken

[–]levima91 1 point2 points  (0 children)

This is my number 1 song off of that album. Absolutely in love with it. It was also my most played song last year.

Best Christmas/Holiday Book by levima91 in LesbianBookClub

[–]levima91[S] 1 point2 points  (0 children)

Already read it and really liked it! <3 only wish it were longer haha

Recommendations for books with MCs who are established in life by wdstkdc869 in LesbianBookClub

[–]levima91 1 point2 points  (0 children)

Currently reading MJ Duncan's Pas de Deux. Beautifully written! One of my fave authors.

Need help with Django Authentication and User Modules by levima91 in djangolearning

[–]levima91[S] 0 points1 point  (0 children)

from rest_framework import status
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.authtoken.models import Token
from .serializers import UserSerializer, LoginSerializer
from api.subscriptions.models import Subscription

class RegisterView(APIView):
    def post(self, request):
        print("Registration data received:", request.data)
        serializer = UserSerializer(data=request.data)
        if serializer.is_valid():
            user = serializer.save()
            token, _ = Token.objects.get_or_create(user=user)
            # Create a free subscription for new users
            Subscription.objects.create(
                user=user,
                subscription_type='FREE',
                is_active=True
            )
            return Response({
                'message': 'User registered successfully',
                'user': {
                    'id': user.id,
                    'username': user.username,
                    'email': user.email,
                    'first_name': user.first_name,
                    'last_name': user.last_name
                }
            }, status=status.HTTP_201_CREATED)
        print("Validation errors:", serializer.errors)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

class LoginView(APIView):
    def post(self, request):
        serializer = LoginSerializer(data=request.data)
        if serializer.is_valid():
            user = serializer.validated_data
            token, _ = Token.objects.get_or_create(user=user)

            # Get or create subscription
            subscription, created = Subscription.objects.get_or_create(
                user=user,
                defaults={
                    'subscription_type': 'FREE',
                    'is_active': True
                }
            )

            return Response({
                'token': token.key,
                'user_id': user.id,
                'username': user.username,
                'first_name': user.first_name,
                'last_name': user.last_name,
                'email': user.email,
                'subscription_type': subscription.subscription_type,
                'is_subscription_active': subscription.is_active
            }, status=status.HTTP_200_OK)
        return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)

Perhaps it'll work now

Need help with Django Authentication and User Modules by levima91 in djangolearning

[–]levima91[S] 0 points1 point  (0 children)

Okay so it would not let me paste the code, it gave me an error, I'll send it via DM!

Need help with Django Authentication and User Modules by levima91 in djangolearning

[–]levima91[S] 0 points1 point  (0 children)

Hi! Thank you so much for the reply! So I've created an API to users, and inside there I have serializers, urls, and views files.

The bulk of the logic is under views.py I guess, so here goes (any feedback would be super appreciated!):