Merge branch 'data_migrations' into test
This commit is contained in:
commit
d1098d132a
3 changed files with 11 additions and 9 deletions
|
@ -57,8 +57,8 @@ def spoj_k_organizatorum_osoby(apps, scema_editor):
|
|||
osoba.jmeno = user.first_name
|
||||
osoba.prijmeni = user.last_name
|
||||
osoba.email = user.email
|
||||
user.jmeno += " (Uživatel!)"
|
||||
user.prijmeni += " (Uživatel!)"
|
||||
user.first_name += " (Uživatel!)"
|
||||
user.last_name += " (Uživatel!)"
|
||||
osoba.datum_registrace = min(osoba.datum_registrace, user.date_joined, key=lambda d: d if d is not None else date.max)
|
||||
user.save()
|
||||
|
||||
|
|
|
@ -37,7 +37,9 @@
|
|||
{% endif %}
|
||||
|
||||
{% if ac.pdf %}
|
||||
<h3>Aktuální témata najdete v <a href="{{ac.pdf.url}}">aktuálním čísle v PDF</a>.</h3>
|
||||
<br><br>Jak seminář M&M funguje? Podívejte se na stránku <a href="/jak-resit/">Jak řešit</a>.<br>
|
||||
<h3>Aktuální témata najdete v <a href="{{ac.pdf.url}}">aktuálním čísle v PDF</a>.</h3><br>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if user.je_org and not verejne%}</div>{% endif %}
|
||||
|
|
|
@ -155,7 +155,7 @@ urlpatterns = [
|
|||
path('api/autocomplete/resitel/', org_required(views.ResitelAutocomplete.as_view()), name='autocomplete_resitel'),
|
||||
path('api/autocomplete/problem/odevzdatelny',views.OdevzdatelnyProblemAutocomplete.as_view(), name='autocomplete_problem_odevzdatelny'),
|
||||
|
||||
path('temp/add_solution', org_required(views.AddSolutionView.as_view()), name='seminar_vloz_reseni'),
|
||||
path('org/add_solution', org_required(views.AddSolutionView.as_view()), name='seminar_vloz_reseni'),
|
||||
path('resitel/nahraj_reseni', resitel_required(views.NahrajReseniView.as_view()), name='seminar_nahraj_reseni'),
|
||||
|
||||
re_path(r'^temp/vue/.*$',views.VueTestView.as_view(),name='vue_test_view'),
|
||||
|
@ -169,9 +169,9 @@ urlpatterns = [
|
|||
# org_member_required(views.OrganizatorAutocomplete.as_view()),
|
||||
# name='seminar_autocomplete_organizator')
|
||||
|
||||
path('temp/reseni/', org_required(views.TabulkaOdevzdanychReseniView.as_view()), name='odevzdavatko_tabulka'),
|
||||
path('temp/reseni/<int:problem>/<int:resitel>/', org_required(views.ReseniProblemuView.as_view()), name='odevzdavatko_reseni_resitele_k_problemu'),
|
||||
path('temp/reseni/<int:pk>', org_required(viewMethodSwitch(get=views.DetailReseniView.as_view(), post=views.hodnoceniReseniView)), name='odevzdavatko_detail_reseni'),
|
||||
path('temp/reseni/all', org_required(views.SeznamReseniView.as_view())),
|
||||
path('temp/reseni/akt', org_required(views.SeznamAktualnichReseniView.as_view())),
|
||||
path('org/reseni/', org_required(views.TabulkaOdevzdanychReseniView.as_view()), name='odevzdavatko_tabulka'),
|
||||
path('org/reseni/<int:problem>/<int:resitel>/', org_required(views.ReseniProblemuView.as_view()), name='odevzdavatko_reseni_resitele_k_problemu'),
|
||||
path('org/reseni/<int:pk>', org_required(viewMethodSwitch(get=views.DetailReseniView.as_view(), post=views.hodnoceniReseniView)), name='odevzdavatko_detail_reseni'),
|
||||
path('org/reseni/all', org_required(views.SeznamReseniView.as_view())),
|
||||
path('org/reseni/akt', org_required(views.SeznamAktualnichReseniView.as_view())),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue