Commits

Guilherme Gondim  committed 0283f49

add PictureList view

  • Participants
  • Parent commits ec9a83e

Comments (0)

Files changed (1)

File galeria/views.py

 class PictureDetail(generic.detail.DetailView):
     model = Picture
     queryset = Picture.objects.public()
+
+
+class PictureList(generic.list.ListView):
+    model = Picture
+    queryset = Picture.objects.public()