You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
442 B

from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from .models import Problem, Cislo
# Create your views here.
class ProblemView(generic.DetailView):
model = Problem
template_name = 'seminar/problem.html'
class CisloView(generic.DetailView):
model = Cislo
template_name = 'seminar/cislo.html'