Guest User

Untitled

a guest
Mar 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from django.utils import timezone
  2.  
  3. class VentaToday(ListView):
  4. queryset = Venta.objects.filter(fecha=timezone.now()).order_by('-id')
  5. template_name = 'venta/venta_today.html'
  6.  
  7. LANGUAGE_CODE = 'es-pe'
  8.  
  9. TIME_ZONE = 'America/Lima'
  10.  
  11. USE_I18N = True
  12.  
  13. USE_L10N = True
  14.  
  15. USE_TZ = True
Add Comment
Please, Sign In to add comment