You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
398 B
Python
13 lines
398 B
Python
from django.views.generic import ListView
|
|
|
|
from containers.models import Container
|
|
|
|
|
|
class ContainersListView(ListView):
|
|
template_name = 'employee/containers-list.html'
|
|
model = Container
|
|
context_object_name = 'containers'
|
|
paginate_by = 30 # Number of containers per page
|
|
|
|
def get_queryset(self):
|
|
return Container.objects.filter(expedited=False).order_by('-received_on') |