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 '' 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'

2
prednasky/admin.py

@ -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):

16
requirements.txt

@ -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

Loading…
Cancel
Save