register and sign in pages

This commit is contained in:
2026-09-22 00:50:30 +05:00
parent f313867653
commit 78d04f75d1
96 changed files with 6383 additions and 109 deletions
+17
View File
@@ -0,0 +1,17 @@
from rest_framework.generics import ListAPIView
from rest_framework.permissions import AllowAny
from .models import Atoll
from .serializers import AtollSerializer
class AtollListView(ListAPIView):
"""Public: the registration form needs this before anyone has a token."""
authentication_classes = []
permission_classes = [AllowAny]
serializer_class = AtollSerializer
pagination_class = None
def get_queryset(self):
return Atoll.objects.filter(is_active=True).prefetch_related("islands")