From f077badf3163fc36c111dc45fe8d7d6f57d8712a Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Fri, 8 Nov 2013 09:31:01 +0200 Subject: Merged motor and checkin --- apps/core/views.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 apps/core/views.py (limited to 'apps/core/views.py') diff --git a/apps/core/views.py b/apps/core/views.py new file mode 100644 index 0000000..fc8f941 --- /dev/null +++ b/apps/core/views.py @@ -0,0 +1,17 @@ +from django.shortcuts import render +from django.views.generic.edit import FormView +from django.views.generic.list import ListView +from apps.core.forms import LoginForm + +from apps.core.models import ServiceProvider + + +class LoginView(FormView): + template_name = 'login.html' + form_class = LoginForm + success_url = '/manage/sites/' + + +class SitesListView(ListView): + model = ServiceProvider + template_name = 'manage/sites.html' -- cgit v1.2.3