Skip to content

Commit

Permalink
chore(global-notice): format codes
Browse files Browse the repository at this point in the history
  • Loading branch information
injoonH committed Jan 6, 2024
1 parent 876dd80 commit cb5219f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/global_notice/views.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
from django.utils import timezone
from rest_framework import permissions, viewsets
from rest_framework import viewsets

from .models import GlobalNotice
from .serializers import GlobalNoticeSerializer


class GlobalNoticeViewSet(viewsets.ReadOnlyModelViewSet):
queryset = GlobalNotice.objects.filter(
started_at__lte=timezone.now(), expired_at__gte=timezone.now()
started_at__lte=timezone.now(),
expired_at__gte=timezone.now(),
)
serializer_class = GlobalNoticeSerializer
pagination_class = None

0 comments on commit cb5219f

Please sign in to comment.