Browse Source

Merge branch 'django3.2' into test

export_seznamu_prednasek
Pavel "LEdoian" Turinsky 3 years ago
parent
commit
57659aa16a
  1. 3
      mamweb/settings_common.py
  2. 2
      prednasky/admin.py
  3. 16
      requirements.txt

3
mamweb/settings_common.py

@ -348,4 +348,5 @@ class InvalidTemplateVariable(str):
return ''
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'

2
prednasky/admin.py

@ -52,7 +52,7 @@ class Seznam_PrednaskaInline(admin.TabularInline):
]
exclude = ['prednaska']
def has_add_permission(self, req): return False
def has_add_permission(self, req, obj): return False
class SeznamAdmin(VersionAdmin):

16
requirements.txt

@ -1,7 +1,7 @@
-c constraints.txt
# basic libs
psycopg2<2.9 # Kvůli djangu 2.2, odstranit při přechodu na 3.
psycopg2
html5lib
ipython
Pillow
@ -13,7 +13,7 @@ Unidecode
# Django and modules
Django<2.3
Django<3.3
#django-bootstrap-sass
django-mptt
django-reversion
@ -34,14 +34,14 @@ django-webpack-loader
django-rest-polymorphic
# Comments
django-contrib-comments==1.9.0
django-contrib-comments
# debug tools/extensions
django-debug-toolbar==1.11
django-extensions==2.1.9
sqlparse==0.2.4
Werkzeug==0.14.1
django-debug-toolbar
django-extensions
sqlparse
Werkzeug
# G+, FB authorisation
@ -52,7 +52,7 @@ requests
# requests-oauthlib
# uWSGI
uWSGI==2.0.17.1
uWSGI
# Potřeba pro test data

Loading…
Cancel
Save