# Path: test_projects/django18/likert_test_app/models.py
# class ParametersModel(models.Model):
#     ice_cream_is_yummy = LikertField()
#     # cabbage_is_yummy = LikertField(max_value=4)
#     item = LikertField('ice cream beats cabbage')
#     # seven = LikertField('seven is my lucky number', max_value=7)
#     # ten = LikertField('ten is the best', max_value=10)
# 
#     questions_should_not_be_optional = LikertField(blank=False)


from django.core.urlresolvers import reverse_lazy
from django.views.generic import CreateView, DetailView, ListView
from .models import ParametersModel
# -*- coding: utf-8 -*-
from __future__ import unicode_literals


# from .forms import SurveyForm


class SurveyListView(ListView):
    context_object_name = 'surveys'
    model = ParametersModel
    template_name = 'likert/index.html'


class SurveyCreateView(CreateView):

# Path: test_projects/django18/likert_test_app/models.py
# class ParametersModel(models.Model):
#     ice_cream_is_yummy = LikertField()
#     # cabbage_is_yummy = LikertField(max_value=4)
#     item = LikertField('ice cream beats cabbage')
#     # seven = LikertField('seven is my lucky number', max_value=7)
#     # ten = LikertField('ten is the best', max_value=10)
# 
#     questions_should_not_be_optional = LikertField(blank=False)


# Path: test_projects/django18/likert_test_app/views.py
from django.core.urlresolvers import reverse_lazy
from django.views.generic import CreateView, DetailView, ListView
from .models import ParametersModel

# -*- coding: utf-8 -*-
from __future__ import unicode_literals


# from .forms import SurveyForm


class SurveyListView(ListView):
    context_object_name = 'surveys'
    model = ParametersModel
    template_name = 'likert/index.html'


class SurveyCreateView(CreateView):

    model = ParametersModel