Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.utils import timezone
- class VentaToday(ListView):
- queryset = Venta.objects.filter(fecha=timezone.now()).order_by('-id')
- template_name = 'venta/venta_today.html'
- LANGUAGE_CODE = 'es-pe'
- TIME_ZONE = 'America/Lima'
- USE_I18N = True
- USE_L10N = True
- USE_TZ = True
Add Comment
Please, Sign In to add comment