Úprava importů v soustredeni

This commit is contained in:
Jonas Havelka 2024-08-02 19:01:50 +02:00
parent b094347b7c
commit 0fa2fb8e2b

View file

@ -1,9 +1,8 @@
from django.shortcuts import get_object_or_404, render from django.shortcuts import get_object_or_404, render
from django.http import HttpResponse from django.http import HttpResponse
from django.views import generic from django.views import generic
from django.conf import settings
from django.contrib.staticfiles.finders import find from django.contrib.staticfiles.finders import find
from seminar.models import Soustredeni, Resitel, Soustredeni_Ucastnici, Nastaveni # Tohle je stare a chceme se toho zbavit. Pouzivejte s.ToCoChci
import csv import csv
import tempfile import tempfile
import shutil import shutil
@ -13,6 +12,10 @@ import http
from seminar.views import obalkyView from seminar.views import obalkyView
from .models import Soustredeni, Soustredeni_Ucastnici
from personalni.models import Resitel
from various.models import Nastaveni
class SoustredeniListView(generic.ListView): class SoustredeniListView(generic.ListView):
model = Soustredeni model = Soustredeni