Browse Source

Přesun kódu modelů tvorby

v3
Jonas Havelka 1 year ago
parent
commit
115589e770
  1. 2
      api/views/autocomplete.py
  2. 2
      odevzdavatko/forms.py
  3. 2
      odevzdavatko/views.py
  4. 2
      personalni/views.py
  5. 2
      seminar/admin.py
  6. 2
      seminar/management/commands/generate_thumbnails.py
  7. 2
      seminar/management/commands/pregeneruj_zmrazene_vysledkovky.py
  8. 2
      seminar/management/commands/testdata.py
  9. 2
      seminar/migrations/0001_squashed_0098_auto_20210906_0305.py
  10. 2
      seminar/migrations/0031_cislo_pdf.py
  11. 2
      seminar/migrations/0032_cislo_pdf_blank_typos.py
  12. 2
      seminar/migrations/0081_auto_20200408_2221.py
  13. 2
      seminar/migrations/0082_auto_20200506_1951.py
  14. 2
      seminar/migrations/0100_auto_20211129_2354.py
  15. 2
      seminar/migrations/0103_deadline.py
  16. 2
      seminar/migrations/0105_odstraneni_deadlinu_cisla.py
  17. 2
      seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py
  18. 1
      seminar/models/__init__.py
  19. 2
      seminar/models/nastaveni.py
  20. 2
      seminar/models/odevzdavatko.py
  21. 2
      seminar/models/soustredeni.py
  22. 2
      seminar/models/treenode.py
  23. 2
      seminar/templatetags/deadliny.py
  24. 2
      seminar/testutils.py
  25. 2
      seminar/utils.py
  26. 2
      seminar/views/docasne.py
  27. 2
      seminar/views/views_all.py
  28. 2
      treenode/serializers.py
  29. 2
      treenode/viewsets.py
  30. 2
      tvorba/models.py
  31. 2
      vysledkovky/utils.py

2
api/views/autocomplete.py

@ -6,7 +6,7 @@ from django.shortcuts import get_object_or_404
from django.db.models import Q from django.db.models import Q
from personalni.models import Skola, Resitel from personalni.models import Skola, Resitel
from seminar.models.tvorba import Problem from tvorba.models import Problem
from seminar.models.nastaveni import Nastaveni from seminar.models.nastaveni import Nastaveni
from .helpers import LoginRequiredAjaxMixin from .helpers import LoginRequiredAjaxMixin

2
odevzdavatko/forms.py

@ -5,7 +5,7 @@ from django.forms.models import inlineformset_factory
from django.utils import timezone from django.utils import timezone
from personalni.models import Resitel from personalni.models import Resitel
from seminar.models.tvorba import Problem, Deadline from tvorba.models import Problem, Deadline
from seminar.models.nastaveni import Nastaveni from seminar.models.nastaveni import Nastaveni
from seminar.models.odevzdavatko import * from seminar.models.odevzdavatko import *

2
odevzdavatko/views.py

@ -17,7 +17,7 @@ from itertools import groupby
import logging import logging
from seminar.models.odevzdavatko import * from seminar.models.odevzdavatko import *
from seminar.models.tvorba import Problem, Rocnik, Deadline from tvorba.models import Problem, Rocnik, Deadline
from seminar.models.nastaveni import Nastaveni from seminar.models.nastaveni import Nastaveni
from personalni.models import Resitel, Organizator, Osoba from personalni.models import Resitel, Organizator, Osoba
from . import forms as f from . import forms as f

2
personalni/views.py

@ -11,7 +11,7 @@ from django.http import HttpResponse
from seminar.models.odevzdavatko import Hodnoceni from seminar.models.odevzdavatko import Hodnoceni
from .models import * from .models import *
from seminar.models.tvorba 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 seminar.models.soustredeni import Soustredeni
from .forms import PrihlaskaForm, ProfileEditForm, PoMaturiteProfileEditForm from .forms import PrihlaskaForm, ProfileEditForm, PoMaturiteProfileEditForm

2
seminar/admin.py

@ -9,7 +9,7 @@ from django.utils.safestring import mark_safe
# Todo: reversion # Todo: reversion
from seminar.models.tvorba 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 seminar.models.soustredeni import Konfera

2
seminar/management/commands/generate_thumbnails.py

@ -1,6 +1,6 @@
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from seminar.models.tvorba import Cislo from tvorba.models import Cislo
from subprocess import CalledProcessError from subprocess import CalledProcessError
import logging import logging

2
seminar/management/commands/pregeneruj_zmrazene_vysledkovky.py

@ -1,5 +1,5 @@
from django.core.management.base import BaseCommand from django.core.management.base import BaseCommand
from seminar.models.tvorba import Deadline from tvorba.models import Deadline
class Command(BaseCommand): class Command(BaseCommand):

2
seminar/management/commands/testdata.py

@ -8,7 +8,7 @@ from django.core.management import call_command
from django.conf import settings from django.conf import settings
from personalni.models import Skola, Resitel from personalni.models import Skola, Resitel
from seminar.models.tvorba import Rocnik, Cislo, Problem from tvorba.models import Rocnik, Cislo, Problem
from seminar.models.odevzdavatko import Reseni from seminar.models.odevzdavatko import Reseni
from seminar.testutils import create_test_data from seminar.testutils import create_test_data
import django.contrib.auth import django.contrib.auth

2
seminar/migrations/0001_squashed_0098_auto_20210906_0305.py

@ -9,7 +9,7 @@ import django_countries.fields
import imagekit.models.fields import imagekit.models.fields
from seminar.models.odevzdavatko import generate_filename from seminar.models.odevzdavatko import generate_filename
from seminar.models.soustredeni import generate_filename_konfera from seminar.models.soustredeni import generate_filename_konfera
from seminar.models.tvorba import cislo_pdf_filename, cislo_png_filename from tvorba.models import cislo_pdf_filename, cislo_png_filename
import taggit.managers import taggit.managers
from datetime import date from datetime import date

2
seminar/migrations/0031_cislo_pdf.py

@ -1,7 +1,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
from seminar.models.tvorba import cislo_pdf_filename from tvorba.models import cislo_pdf_filename
class Migration(migrations.Migration): class Migration(migrations.Migration):

2
seminar/migrations/0032_cislo_pdf_blank_typos.py

@ -2,7 +2,7 @@ from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
import django_countries.fields import django_countries.fields
from seminar.models.tvorba import cislo_pdf_filename from tvorba.models import cislo_pdf_filename
class Migration(migrations.Migration): class Migration(migrations.Migration):

2
seminar/migrations/0081_auto_20200408_2221.py

@ -1,7 +1,7 @@
# Generated by Django 2.2.9 on 2020-04-08 20:21 # Generated by Django 2.2.9 on 2020-04-08 20:21
from django.db import migrations, models from django.db import migrations, models
from seminar.models.tvorba import cislo_pdf_filename from tvorba.models import cislo_pdf_filename
class Migration(migrations.Migration): class Migration(migrations.Migration):

2
seminar/migrations/0082_auto_20200506_1951.py

@ -1,7 +1,7 @@
# Generated by Django 2.2.12 on 2020-05-06 17:51 # Generated by Django 2.2.12 on 2020-05-06 17:51
from django.db import migrations, models from django.db import migrations, models
from seminar.models.tvorba import cislo_png_filename from tvorba.models import cislo_png_filename
class Migration(migrations.Migration): class Migration(migrations.Migration):

2
seminar/migrations/0100_auto_20211129_2354.py

@ -1,7 +1,7 @@
# Generated by Django 2.2.24 on 2021-11-29 22:54 # Generated by Django 2.2.24 on 2021-11-29 22:54
from django.db import migrations, models from django.db import migrations, models
from seminar.models.tvorba import cislo_pdf_filename, OverwriteStorage from tvorba.models import cislo_pdf_filename, OverwriteStorage
class Migration(migrations.Migration): class Migration(migrations.Migration):

2
seminar/migrations/0103_deadline.py

@ -5,7 +5,7 @@ from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
from django.utils import timezone from django.utils import timezone
from seminar.models.tvorba import Deadline as mDeadline from tvorba.models import Deadline as mDeadline
def vytvor_deadliny(apps, schema_editor): def vytvor_deadliny(apps, schema_editor):

2
seminar/migrations/0105_odstraneni_deadlinu_cisla.py

@ -1,7 +1,7 @@
# Generated by Django 3.2.15 on 2022-10-09 10:14 # Generated by Django 3.2.15 on 2022-10-09 10:14
from django.db import migrations from django.db import migrations
from seminar.models.tvorba import Deadline from tvorba.models import Deadline
def vrat_deadliny(apps, schema_editor): def vrat_deadliny(apps, schema_editor):

2
seminar/migrations/0106_remove_cislo_verejna_vysledkovka.py

@ -1,7 +1,7 @@
# Generated by Django 3.2.15 on 2022-10-09 11:04 # Generated by Django 3.2.15 on 2022-10-09 11:04
from django.db import migrations from django.db import migrations
from seminar.models.tvorba import Deadline from tvorba.models import Deadline
def vrat_verejnost(apps, schema_editor): def vrat_verejnost(apps, schema_editor):

1
seminar/models/__init__.py

@ -1,4 +1,3 @@
from .tvorba import *
from .odevzdavatko import * from .odevzdavatko import *
from .base import * from .base import *
from .soustredeni import * from .soustredeni import *

2
seminar/models/nastaveni.py

@ -3,7 +3,7 @@ from django.urls import reverse
from reversion import revisions as reversion from reversion import revisions as reversion
from solo.models import SingletonModel from solo.models import SingletonModel
from seminar.models.tvorba import Cislo from tvorba.models import Cislo
@reversion.register(ignore_duplicates=True) @reversion.register(ignore_duplicates=True)

2
seminar/models/odevzdavatko.py

@ -9,7 +9,7 @@ from django.urls import reverse_lazy
from django.utils import timezone from django.utils import timezone
from django.conf import settings from django.conf import settings
from seminar.models.tvorba import Cislo, Deadline, Problem, Uloha, aux_generate_filename from tvorba.models import Cislo, Deadline, Problem, Uloha, aux_generate_filename
from personalni.models import Resitel from personalni.models import Resitel
from seminar.models.base import SeminarModelBase from seminar.models.base import SeminarModelBase

2
seminar/models/soustredeni.py

@ -10,7 +10,7 @@ from django.conf import settings
from personalni.models import Resitel, Organizator from personalni.models import Resitel, Organizator
from .base import SeminarModelBase from .base import SeminarModelBase
from seminar.models.tvorba import Rocnik, Problem, aux_generate_filename from tvorba.models import Rocnik, Problem, aux_generate_filename
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

2
seminar/models/treenode.py

@ -15,7 +15,7 @@ from .pomocne import Text
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
from seminar.models.tvorba import Rocnik, Cislo, Tema, Uloha, Pohadka from tvorba.models import Rocnik, Cislo, Tema, Uloha, Pohadka
class TreeNode(PolymorphicModel): class TreeNode(PolymorphicModel):
class Meta: class Meta:

2
seminar/templatetags/deadliny.py

@ -1,7 +1,7 @@
from django import template from django import template
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
register = template.Library() register = template.Library()
from seminar.models.tvorba import Deadline from tvorba.models import Deadline
@register.filter(name='deadline_kratseji') @register.filter(name='deadline_kratseji')
def deadline_kratsi_text(deadline: Deadline): def deadline_kratsi_text(deadline: Deadline):

2
seminar/testutils.py

@ -14,7 +14,7 @@ import logging
from korektury.testutils import create_test_pdf from korektury.testutils import create_test_pdf
from models.nastaveni import * from models.nastaveni import *
from personalni.models import * from personalni.models import *
from seminar.models.tvorba import * from tvorba.models import *
from seminar.models.odevzdavatko import * from seminar.models.odevzdavatko import *
from seminar.models.soustredeni import * from seminar.models.soustredeni import *
from seminar.models.novinky import * from seminar.models.novinky import *

2
seminar/utils.py

@ -17,7 +17,7 @@ from django.core.exceptions import ObjectDoesNotExist
import logging import logging
from personalni.models import Organizator, Resitel, Skola, Prijemce from personalni.models import Organizator, Resitel, Skola, Prijemce
from seminar.models.tvorba 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 seminar.models.soustredeni import Konfery_Ucastnici, Soustredeni_Ucastnici
from seminar.models.odevzdavatko import Reseni_Resitele from seminar.models.odevzdavatko import Reseni_Resitele

2
seminar/views/docasne.py

@ -5,7 +5,7 @@ from django.db import transaction
from django.forms import Form, CharField, IntegerField from django.forms import Form, CharField, IntegerField
from django.views.generic import FormView from django.views.generic import FormView
from seminar.models.tvorba import Cislo, Problem, Tema, Uloha from tvorba.models import Cislo, Problem, Tema, Uloha
from django.shortcuts import render, get_object_or_404 from django.shortcuts import render, get_object_or_404
def problemView(request, pk): def problemView(request, pk):

2
seminar/views/views_all.py

@ -9,7 +9,7 @@ from django.db.models import Q, Sum, Count
from django.views.generic.base import RedirectView from django.views.generic.base import RedirectView
from django.core.exceptions import PermissionDenied from django.core.exceptions import PermissionDenied
from seminar.models.tvorba import Rocnik, Cislo, Deadline, Problem, Tema, Clanek from tvorba.models import Rocnik, Cislo, Deadline, Problem, Tema, Clanek
from seminar.models.nastaveni import Nastaveni from seminar.models.nastaveni import Nastaveni
from personalni.models import Resitel, Organizator from personalni.models import Resitel, Organizator
from seminar.models.novinky import Novinky from seminar.models.novinky import Novinky

2
treenode/serializers.py

@ -4,7 +4,7 @@ from rest_polymorphic.serializers import PolymorphicSerializer
from seminar.models.treenode import * from seminar.models.treenode import *
from seminar.models.pomocne import Text from seminar.models.pomocne import Text
from seminar.models.odevzdavatko import Reseni from seminar.models.odevzdavatko import Reseni
from seminar.models.tvorba import Problem, Uloha from tvorba.models import Problem, Uloha
from treenode import treelib from treenode import treelib
DEFAULT_NODE_DEPTH = 2 DEFAULT_NODE_DEPTH = 2

2
treenode/viewsets.py

@ -4,7 +4,7 @@ from rest_framework.response import Response
from django.core.exceptions import PermissionDenied from django.core.exceptions import PermissionDenied
from rest_framework.permissions import BasePermission, AllowAny from rest_framework.permissions import BasePermission, AllowAny
from seminar.models.treenode import * from seminar.models.treenode import *
from seminar.models.tvorba import Problem, Uloha from tvorba.models import Problem, Uloha
from seminar.models.odevzdavatko import Reseni from seminar.models.odevzdavatko import Reseni
import treenode.serializers as views import treenode.serializers as views

2
seminar/models/tvorba.py → tvorba/models.py

@ -33,7 +33,7 @@ from django.core.mail import EmailMessage
from personalni.models import Prijemce, Organizator from personalni.models import Prijemce, Organizator
from .base import SeminarModelBase from seminar.models.base import SeminarModelBase
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

2
vysledkovky/utils.py

@ -2,7 +2,7 @@ import abc
from functools import cached_property from functools import cached_property
from typing import Union, Iterable # TODO: s pythonem 3.10 přepsat na '|' from typing import Union, Iterable # TODO: s pythonem 3.10 přepsat na '|'
from seminar.models.tvorba import Rocnik, Cislo, Deadline, Problem, Clanek from tvorba.models import Rocnik, Cislo, Deadline, Problem, Clanek
from seminar.models.odevzdavatko import Hodnoceni from seminar.models.odevzdavatko import Hodnoceni
from personalni.models import Resitel from personalni.models import Resitel
from seminar.models.soustredeni import Konfera from seminar.models.soustredeni import Konfera

Loading…
Cancel
Save