diff options
Diffstat (limited to 'snakeplan/projects/views/projects.py')
-rw-r--r-- | snakeplan/projects/views/projects.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/snakeplan/projects/views/projects.py b/snakeplan/projects/views/projects.py new file mode 100644 index 0000000..288083e --- /dev/null +++ b/snakeplan/projects/views/projects.py | |||
@@ -0,0 +1,10 @@ | |||
1 | from django.views.generic import list_detail | ||
2 | from snakeplan.projects.models import Project | ||
3 | |||
4 | |||
5 | def index(request): | ||
6 | return list_detail.object_list( | ||
7 | request=request, | ||
8 | queryset=Project.objects.all(), | ||
9 | allow_empty=True | ||
10 | ) | ||