Přesun kódu modelů soustředění
This commit is contained in:
parent
acea74bc6e
commit
d240774022
18 changed files with 17 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
||||||
#coding: utf-8
|
#coding: utf-8
|
||||||
|
|
||||||
from django import forms
|
from django import forms
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
|
|
||||||
class KomentarForm(forms.Form):
|
class KomentarForm(forms.Form):
|
||||||
komentar = forms.CharField(label = "Komentář:", max_length = 300, required=False)
|
komentar = forms.CharField(label = "Komentář:", max_length = 300, required=False)
|
||||||
|
|
|
@ -8,7 +8,7 @@ from imagekit.processors import ResizeToFit, Transpose
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
|
|
||||||
VZDY=0
|
VZDY=0
|
||||||
ORG=1
|
ORG=1
|
||||||
|
|
|
@ -8,7 +8,7 @@ from django.template import RequestContext
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from galerie.models import Obrazek, Galerie
|
from galerie.models import Obrazek, Galerie
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
from galerie.forms import KomentarForm, NewGalerieForm
|
from galerie.forms import KomentarForm, NewGalerieForm
|
||||||
|
|
||||||
def zobrazit(galerie, request):
|
def zobrazit(galerie, request):
|
||||||
|
|
|
@ -13,7 +13,7 @@ from odevzdavatko.models import Hodnoceni
|
||||||
from .models import *
|
from .models import *
|
||||||
from tvorba.models import Tema, Uloha, Clanek
|
from tvorba.models import Tema, Uloha, Clanek
|
||||||
from seminar.models.nastaveni import Nastaveni
|
from seminar.models.nastaveni import Nastaveni
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
from .forms import PrihlaskaForm, ProfileEditForm, PoMaturiteProfileEditForm
|
from .forms import PrihlaskaForm, ProfileEditForm, PoMaturiteProfileEditForm
|
||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
|
|
|
@ -5,7 +5,7 @@ from django.utils.safestring import mark_safe
|
||||||
from django.utils.html import escape
|
from django.utils.html import escape
|
||||||
|
|
||||||
from .models import Prednaska, Seznam, STAV_NAVRH
|
from .models import Prednaska, Seznam, STAV_NAVRH
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
|
|
||||||
|
|
||||||
class Seznam_PrednaskaInline(admin.TabularInline):
|
class Seznam_PrednaskaInline(admin.TabularInline):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
from personalni.models import Organizator
|
from personalni.models import Organizator
|
||||||
|
|
||||||
STAV_NAVRH = 1
|
STAV_NAVRH = 1
|
||||||
|
|
|
@ -6,7 +6,7 @@ from django.db.models import Sum
|
||||||
from django.forms import Form
|
from django.forms import Form
|
||||||
|
|
||||||
from prednasky.models import Prednaska, Hlasovani, Seznam, STAV_NAVRH
|
from prednasky.models import Prednaska, Hlasovani, Seznam, STAV_NAVRH
|
||||||
from seminar.models.soustredeni import Soustredeni
|
from soustredeni.models import Soustredeni
|
||||||
from personalni.models import Osoba
|
from personalni.models import Osoba
|
||||||
|
|
||||||
def newPrednaska(request):
|
def newPrednaska(request):
|
||||||
|
|
|
@ -12,7 +12,7 @@ from django.utils.safestring import mark_safe
|
||||||
from tvorba.models import Rocnik, Cislo, Deadline, ZmrazenaVysledkovka, Problem, Uloha, Tema, Clanek
|
from tvorba.models import Rocnik, Cislo, Deadline, ZmrazenaVysledkovka, Problem, Uloha, Tema, Clanek
|
||||||
from seminar.models.nastaveni import Nastaveni
|
from seminar.models.nastaveni import Nastaveni
|
||||||
from personalni.models import Resitel
|
from personalni.models import Resitel
|
||||||
from seminar.models.soustredeni import Konfera
|
from soustredeni.models import Konfera
|
||||||
from seminar.models.novinky import Novinky
|
from seminar.models.novinky import Novinky
|
||||||
from seminar.models.pomocne import Text, Obrazek
|
from seminar.models.pomocne import Text, Obrazek
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ import django.utils.timezone
|
||||||
import django_countries.fields
|
import django_countries.fields
|
||||||
import imagekit.models.fields
|
import imagekit.models.fields
|
||||||
from odevzdavatko.models import generate_filename
|
from odevzdavatko.models import generate_filename
|
||||||
from seminar.models.soustredeni import generate_filename_konfera
|
from soustredeni.models import generate_filename_konfera
|
||||||
from tvorba.models import cislo_pdf_filename, cislo_png_filename
|
from tvorba.models import cislo_pdf_filename, cislo_png_filename
|
||||||
import taggit.managers
|
import taggit.managers
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from seminar.models.soustredeni import generate_filename_konfera
|
from soustredeni.models import generate_filename_konfera
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
|
@ -2,7 +2,7 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
from seminar.models.soustredeni import generate_filename_konfera
|
from soustredeni.models import generate_filename_konfera
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
from .base import *
|
from .base import *
|
||||||
from .soustredeni import *
|
|
||||||
from .pomocne import *
|
from .pomocne import *
|
||||||
from .treenode import *
|
from .treenode import *
|
||||||
from .novinky import *
|
from .novinky import *
|
||||||
|
|
|
@ -16,7 +16,7 @@ from models.nastaveni import *
|
||||||
from personalni.models import *
|
from personalni.models import *
|
||||||
from tvorba.models import *
|
from tvorba.models import *
|
||||||
from odevzdavatko.models import *
|
from odevzdavatko.models import *
|
||||||
from seminar.models.soustredeni import *
|
from soustredeni.models import *
|
||||||
from seminar.models.novinky import *
|
from seminar.models.novinky import *
|
||||||
from seminar.models.pomocne import *
|
from seminar.models.pomocne import *
|
||||||
from seminar.models.treenode import *
|
from seminar.models.treenode import *
|
||||||
|
|
|
@ -19,7 +19,7 @@ import logging
|
||||||
from personalni.models import Organizator, Resitel, Skola, Prijemce
|
from personalni.models import Organizator, Resitel, Skola, Prijemce
|
||||||
from tvorba.models import Clanek, Rocnik
|
from tvorba.models import Clanek, Rocnik
|
||||||
from seminar.models.treenode import CisloNode
|
from seminar.models.treenode import CisloNode
|
||||||
from seminar.models.soustredeni import Konfery_Ucastnici, Soustredeni_Ucastnici
|
from soustredeni.models import Konfery_Ucastnici, Soustredeni_Ucastnici
|
||||||
from odevzdavatko.models import Reseni_Resitele
|
from odevzdavatko.models import Reseni_Resitele
|
||||||
import treenode.treelib as t
|
import treenode.treelib as t
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ from django.contrib import admin
|
||||||
from django.forms import widgets
|
from django.forms import widgets
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|
||||||
from seminar.models.soustredeni import *
|
from .models import *
|
||||||
|
|
||||||
|
|
||||||
class SoustredeniUcastniciInline(admin.TabularInline):
|
class SoustredeniUcastniciInline(admin.TabularInline):
|
||||||
|
|
|
@ -9,7 +9,7 @@ from django.conf import settings
|
||||||
|
|
||||||
from personalni.models import Resitel, Organizator
|
from personalni.models import Resitel, Organizator
|
||||||
|
|
||||||
from .base import SeminarModelBase
|
from seminar.models.base import SeminarModelBase
|
||||||
from tvorba.models import Rocnik, Problem, aux_generate_filename
|
from tvorba.models import Rocnik, Problem, aux_generate_filename
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
|
@ -3,7 +3,7 @@ from django.http import HttpResponse
|
||||||
from django.views import generic
|
from django.views import generic
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.staticfiles.finders import find
|
from django.contrib.staticfiles.finders import find
|
||||||
from seminar.models.soustredeni import *
|
from .models import *
|
||||||
from personalni.models import Resitel
|
from personalni.models import Resitel
|
||||||
from seminar.models.nastaveni import Nastaveni
|
from seminar.models.nastaveni import Nastaveni
|
||||||
import csv
|
import csv
|
||||||
|
|
|
@ -5,7 +5,7 @@ from typing import Union, Iterable # TODO: s pythonem 3.10 přepsat na '|'
|
||||||
from tvorba.models import Rocnik, Cislo, Deadline, Problem, Clanek
|
from tvorba.models import Rocnik, Cislo, Deadline, Problem, Clanek
|
||||||
from odevzdavatko.models import Hodnoceni
|
from odevzdavatko.models import Hodnoceni
|
||||||
from personalni.models import Resitel
|
from personalni.models import Resitel
|
||||||
from seminar.models.soustredeni import Konfera
|
from soustredeni.models import Konfera
|
||||||
from django.db.models import Q, Sum
|
from django.db.models import Q, Sum
|
||||||
from seminar.utils import resi_v_rocniku
|
from seminar.utils import resi_v_rocniku
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue