Merge branch 'develop' of gimli.ms.mff.cuni.cz:/akce/mam/git/mamweb into develop
This commit is contained in:
		
						commit
						b750a352dd
					
				
					 30 changed files with 48 additions and 39 deletions
				
			
		|  | @ -1,6 +1,6 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| <html> | <html> | ||||||
| <head> | <head> | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block script%} | {% block script%} | ||||||
|   <link rel="stylesheet" type="text/css" media="screen, projection" href="{% static "korektury/opraf-list.css" %}" /> |   <link rel="stylesheet" type="text/css" media="screen, projection" href="{% static "korektury/opraf-list.css" %}" /> | ||||||
|  | @ -13,7 +13,7 @@ | ||||||
| {% endblock nadpis1a %} | {% endblock nadpis1a %} | ||||||
| </h1> | </h1> | ||||||
| 
 | 
 | ||||||
| {% regroup object_list|dictsortreversed:"cislo_a_tema" by cislo_a_tema as seskupeny_list %} | {% regroup object_list by cislo_a_tema as seskupeny_list %} | ||||||
| 
 | 
 | ||||||
| {% for skupina in seskupeny_list %} | {% for skupina in seskupeny_list %} | ||||||
| {{ skupina.grouper }} | {{ skupina.grouper }} | ||||||
|  | @ -30,6 +30,8 @@ | ||||||
|     <li> Nejsou žádné dokumenty ke korekturování. |     <li> Nejsou žádné dokumenty ke korekturování. | ||||||
|   {% endfor %} |   {% endfor %} | ||||||
| </ul> | </ul> | ||||||
|  | {% empty %} | ||||||
|  | <p>Nejspíš se nepodařilo seskupit korektury podle čísel. Napiš prosím webařům a mezitím použij <a href="{% url 'korektury_neseskupene_list' %}">neseskupený seznam</a>.</p> | ||||||
| {% endfor %} | {% endfor %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block script%} | {% block script%} | ||||||
|   <link rel="stylesheet" type="text/css" media="screen, projection" href="{% static "korektury/opraf-list.css" %}" /> |   <link rel="stylesheet" type="text/css" media="screen, projection" href="{% static "korektury/opraf-list.css" %}" /> | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ from . import views | ||||||
| 
 | 
 | ||||||
| urlpatterns = [ | urlpatterns = [ | ||||||
| 	path('korektury/', org_required(views.KorekturySeskupeneListView.as_view()), name='korektury_list'), | 	path('korektury/', org_required(views.KorekturySeskupeneListView.as_view()), name='korektury_list'), | ||||||
|  | 	path('korektury/neseskupene/', org_required(views.KorekturyAktualniListView.as_view()), name='korektury_neseskupene_list'), | ||||||
| 	path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'), | 	path('korektury/zastarale/', org_required(views.KorekturyZastaraleListView.as_view()), name='korektury_stare_list'), | ||||||
| 	path('korektury/<int:pdf>/', org_required(views.KorekturyView.as_view()), name='korektury'), | 	path('korektury/<int:pdf>/', org_required(views.KorekturyView.as_view()), name='korektury'), | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | @ -41,9 +41,6 @@ class KorekturyAktualniListView(KorekturyListView): | ||||||
|         return context |         return context | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class KorekturySeskupeneListView(KorekturyAktualniListView): |  | ||||||
|     template_name = 'korektury/seskupeny_seznam.html' |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
| class KorekturyZastaraleListView(KorekturyListView): | class KorekturyZastaraleListView(KorekturyListView): | ||||||
|     def get_queryset(self, *args, **kwargs): |     def get_queryset(self, *args, **kwargs): | ||||||
|  | @ -56,6 +53,14 @@ class KorekturyZastaraleListView(KorekturyListView): | ||||||
|         context['selected'] = 'zastarale' |         context['selected'] = 'zastarale' | ||||||
|         return context |         return context | ||||||
| 
 | 
 | ||||||
|  | class KorekturySeskupeneListView(KorekturyAktualniListView): | ||||||
|  | 	template_name = 'korektury/seskupeny_seznam.html' | ||||||
|  | 
 | ||||||
|  | 	# {% regroup %} potřebuje dostat správně setříděné názvy, aby nedělal duplikáty | ||||||
|  | 	def get_queryset(self, *args, **kwargs): | ||||||
|  | 		qs = super().get_queryset(**kwargs) | ||||||
|  | 		return qs.order_by('nazev') | ||||||
|  | 
 | ||||||
| ### Korektury | ### Korektury | ||||||
| class KorekturyView(generic.TemplateView): | class KorekturyView(generic.TemplateView): | ||||||
| 	model = Oprava | 	model = Oprava | ||||||
|  |  | ||||||
|  | @ -348,4 +348,5 @@ class InvalidTemplateVariable(str): | ||||||
|         return '' |         return '' | ||||||
| TEMPLATES[0]['OPTIONS']['string_if_invalid'] = InvalidTemplateVariable('%s') | TEMPLATES[0]['OPTIONS']['string_if_invalid'] = InvalidTemplateVariable('%s') | ||||||
| 
 | 
 | ||||||
| 
 | # Django 3.2 vyžaduje explicitní nastavení autoklíče, zatím nechápu proč | ||||||
|  | DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| {% extends "error_base.html" %} | {% extends "error_base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block errorheading %} | {% block errorheading %} | ||||||
|       O-jo-jo-jo-joj |       O-jo-jo-jo-joj | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| {% extends "error_base.html" %} | {% extends "error_base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block errorheading %} | {% block errorheading %} | ||||||
|       Vrrrrrrrrr |       Vrrrrrrrrr | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| {% extends "error_base.html" %} | {% extends "error_base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block errorheading %} | {% block errorheading %} | ||||||
| Požadovaná stránka nenalezena | Požadovaná stránka nenalezena | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| {% extends "error_base.html" %} | {% extends "error_base.html" %} | ||||||
| 
 | 
 | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block errorheading %} | {% block errorheading %} | ||||||
|       O-jo-jo-jo-joj |       O-jo-jo-jo-joj | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "admin/base.html" %} | {% extends "admin/base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block extrahead %} | {% block extrahead %} | ||||||
| <link rel="shortcut icon" href="{% static 'favicon.ico' %}" type="image/x-icon"> | <link rel="shortcut icon" href="{% static 'favicon.ico' %}" type="image/x-icon"> | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| {% load staticfiles sekizai_tags %} | {% load static sekizai_tags %} | ||||||
| {% load sitetree %} | {% load sitetree %} | ||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| <html lang='cs'> | <html lang='cs'> | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| <img class="logo" | <img class="logo" | ||||||
|     {% for item in sitetree_items %} |     {% for item in sitetree_items %} | ||||||
|         {% if item.is_active or item.in_current_branch %} |         {% if item.is_active or item.in_current_branch %} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| {% block script %} | {% block script %} | ||||||
|     <script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script> |     <script src="{% static 'odevzdavatko/dynamic_formsets.js' %}"></script> | ||||||
| {% endblock %} | {% endblock %} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| {% block script %} | {% block script %} | ||||||
|     <!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!--> |     <!--script type="text/javascript" src="{% static 'admin/js/vendor/jquery/jquery.js' %}"></script!--> | ||||||
|     {{form.media}} |     {{form.media}} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block script %} | {% block script %} | ||||||
|     <script src="{% static 'personalni/prihlaska.js' %}"></script> |     <script src="{% static 'personalni/prihlaska.js' %}"></script> | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block script %} | {% block script %} | ||||||
|     <script src="{% static 'personalni/prihlaska.js' %}"></script> |     <script src="{% static 'personalni/prihlaska.js' %}"></script> | ||||||
|  |  | ||||||
|  | @ -52,7 +52,7 @@ class Seznam_PrednaskaInline(admin.TabularInline): | ||||||
| 	] | 	] | ||||||
| 	exclude = ['prednaska'] | 	exclude = ['prednaska'] | ||||||
| 
 | 
 | ||||||
| 	def has_add_permission(self, req): return False | 	def has_add_permission(self, req, obj): return False | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class SeznamAdmin(VersionAdmin): | class SeznamAdmin(VersionAdmin): | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| {% extends 'base.html' %} | {% extends 'base.html' %} | ||||||
| 
 | 
 | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| {% extends 'base.html' %} | {% extends 'base.html' %} | ||||||
| 
 | 
 | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| -c constraints.txt | -c constraints.txt | ||||||
| # basic libs | # basic libs | ||||||
| 
 | 
 | ||||||
| psycopg2<2.9 # Kvůli djangu 2.2, odstranit při přechodu na 3. | psycopg2 | ||||||
| html5lib | html5lib | ||||||
| ipython | ipython | ||||||
| Pillow | Pillow | ||||||
|  | @ -13,7 +13,7 @@ Unidecode | ||||||
| 
 | 
 | ||||||
| # Django and modules | # Django and modules | ||||||
| 
 | 
 | ||||||
| Django<2.3 | Django<3.3 | ||||||
| #django-bootstrap-sass | #django-bootstrap-sass | ||||||
| django-mptt | django-mptt | ||||||
| django-reversion | django-reversion | ||||||
|  | @ -34,14 +34,14 @@ django-webpack-loader | ||||||
| django-rest-polymorphic | django-rest-polymorphic | ||||||
| 
 | 
 | ||||||
| # Comments | # Comments | ||||||
| django-contrib-comments==1.9.0 | django-contrib-comments | ||||||
| 
 | 
 | ||||||
| # debug tools/extensions | # debug tools/extensions | ||||||
| 
 | 
 | ||||||
| django-debug-toolbar==1.11 | django-debug-toolbar | ||||||
| django-extensions==2.1.9 | django-extensions | ||||||
| sqlparse==0.2.4 | sqlparse | ||||||
| Werkzeug==0.14.1 | Werkzeug | ||||||
| 
 | 
 | ||||||
| # G+, FB authorisation | # G+, FB authorisation | ||||||
| 
 | 
 | ||||||
|  | @ -52,7 +52,7 @@ requests | ||||||
| # requests-oauthlib | # requests-oauthlib | ||||||
| 
 | 
 | ||||||
| # uWSGI | # uWSGI | ||||||
| uWSGI==2.0.17.1 | uWSGI | ||||||
| 
 | 
 | ||||||
| # Potřeba pro test data | # Potřeba pro test data | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% autoescape off %} | {% autoescape off %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| {% load tex %} | {% load tex %} | ||||||
| \documentclass[11pt,a4paper,landscape]{article} | \documentclass[11pt,a4paper,landscape]{article} | ||||||
| \usepackage[top=3.75cm,left=8cm]{geometry} | \usepackage[top=3.75cm,left=8cm]{geometry} | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| {% extends 'base.html' %} | {% extends 'base.html' %} | ||||||
| 
 | 
 | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,4 +1,4 @@ | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|   <h1> |   <h1> | ||||||
|  |  | ||||||
|  | @ -10,7 +10,7 @@ function sousdeadline() { | ||||||
| {% extends 'base.html' %} | {% extends 'base.html' %} | ||||||
| 
 | 
 | ||||||
| {% load humanize %} | {% load humanize %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "seminar/archiv/base.html" %} | {% extends "seminar/archiv/base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| {% load sekizai_tags %} | {% load sekizai_tags %} | ||||||
| 
 | 
 | ||||||
| {# toto z nejakeho duvodu nefunguje #} | {# toto z nejakeho duvodu nefunguje #} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
|  | @ -1,5 +1,5 @@ | ||||||
| {% extends "base.html" %} | {% extends "base.html" %} | ||||||
| {% load staticfiles %} | {% load static %} | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| {% block content %} | {% block content %} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue