Internal Server Error: /admin/event/activity/add/ #5

Open
opened 2019-03-25 09:59:09 +01:00 by mpepin · 0 comments
mpepin commented 2019-03-25 09:59:09 +01:00 (Migrated from git.eleves.ens.fr)
Internal Server Error: /admin/event/activity/add/

TypeError at /admin/event/activity/add/
unorderable types: int() > NoneType()

Request Method: POST
Request URL: http://poulpe.ens.fr/admin/event/activity/add/
Django Version: 2.1
Python Executable: /srv/poulpe.ens.fr/poulpe/venv/bin/python3
Python Version: 3.5.3
Python Path: ['/srv/poulpe.ens.fr/poulpe/code', '/srv/poulpe.ens.fr/poulpe/venv/bin', '/srv/poulpe.ens.fr/poulpe/venv/lib/python35.zip', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/plat-x86_64-linux-gnu', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages']
Server time: dim, 24 Mar 2019 18:05:57 +0100
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sites',
 'bootstrapform',
 'widget_tweaks',
 'taggit',
 'django_tables2',
 'django_filters',
 'bootstrap3',
 'allauth_ens',
 'allauth',
 'allauth.account',
 'allauth.socialaccount',
 'allauth_cas',
 'allauth_ens.providers.clipper',
 'communication',
 'equipment',
 'event',
 'shared',
 'users']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Traceback:

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner
  34.             response = get_response(request)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  126.                 response = self.process_exception_by_middleware(e, request)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response
  124.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in wrapper
  607.                 return self.admin_site.admin_view(view)(*args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view
  142.                     response = view_func(request, *args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/sites.py" in inner
  223.             return view(request, *args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in add_view
  1647.         return self.changeform_view(request, None, form_url, extra_context)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapper
  45.         return bound_method(*args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view
  142.                     response = view_func(request, *args, **kwargs)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in changeform_view
  1536.             return self._changeform_view(request, object_id, form_url, extra_context)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in _changeform_view
  1568.             form_validated = form.is_valid()

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in is_valid
  185.         return self.is_bound and not self.errors

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in errors
  180.             self.full_clean()

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in full_clean
  383.         self._post_clean()

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/models.py" in _post_clean
  403.             self.instance.full_clean(exclude=exclude, validate_unique=False)

File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/db/models/base.py" in full_clean
  1136.             self.clean()

File "/srv/poulpe.ens.fr/poulpe/code/event/models.py" in clean
  225.             if self.get_herited('min_perm') > self.get_herited('max_perm'):

Exception Type: TypeError at /admin/event/activity/add/
Exception Value: unorderable types: int() > NoneType()
Request information:
USER: XXXXXXXXX

GET: No GET data

POST:
end_1 = '00:45'
csrfmiddlewaretoken = XXXXXXXXXXXXXX
end_0 = '05/04/2019'
title = 'Installation Lino'
equipmentattribution_set-MIN_NUM_FORMS = '0'
is_public = '2'
equipmentattribution_set-__prefix__-activity = ''
max_perm = ''
parent = '14'
equipmentattribution_set-TOTAL_FORMS = '0'
remarks = ''
equipmentattribution_set-__prefix__-id = ''
_save = 'Enregistrer'
equipmentattribution_set-MAX_NUM_FORMS = '1000'
equipmentattribution_set-__prefix__-remarks = ''
beginning_0 = '04/04/2019'
equipmentattribution_set-INITIAL_FORMS = '0'
min_perm = '8'
places = '3'
equipmentattribution_set-__prefix__-amount = ''
event = '5'
has_perm = '2'
beginning_1 = '22:45'
description = ''

FILES: No FILES data

COOKIES:
csrftoken = XXXXXXXXXXXXXXXX
sessionid = XXXXXXXXXXXXXXXX

META:
CONTENT_LENGTH = '641'
CONTENT_TYPE = 'application/x-www-form-urlencoded'
CSRF_COOKIE = XXXXXXXXXXXXXXXX
HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8'
HTTP_ACCEPT_ENCODING = 'gzip, deflate, br'
HTTP_ACCEPT_LANGUAGE = 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7'
HTTP_CACHE_CONTROL = 'max-age=0'
HTTP_CONNECTION = 'close'
HTTP_COOKIE = 'csrftoken=XXXXXXXXXXXXXXXX; sessionid=XXXXXXXXXXXXXXXX'
HTTP_HOST = 'poulpe.ens.fr'
HTTP_ORIGIN = 'https://poulpe.ens.fr'
HTTP_REFERER = 'https://poulpe.ens.fr/admin/event/activity/add/'
HTTP_UPGRADE_INSECURE_REQUESTS = '1'
HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.107'
HTTP_X_FORWARDED_FOR = '129.199.157.98'
HTTP_X_FORWARDED_PROTO = 'https'
HTTP_X_REAL_IP = '129.199.157.98'
HTTP_X_SSL_CLIENT_VERIFY = 'NONE'
PATH_INFO = '/admin/event/activity/add/'
QUERY_STRING = ''
RAW_URI = '/admin/event/activity/add/'
REMOTE_ADDR = ''
REQUEST_METHOD = 'POST'
SCRIPT_NAME = ''
SERVER_NAME = 'poulpe.ens.fr'
SERVER_PORT = '80'
SERVER_PROTOCOL = 'HTTP/1.0'
SERVER_SOFTWARE = 'gunicorn/19.9.0'
gunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/srv/poulpe.ens.fr/poulpe/poulpe.sock>
wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fbf0fe86eb8>
wsgi.file_wrapper = ''
wsgi.input = <gunicorn.http.body.Body object at 0x7fbf0fe86208>
wsgi.multiprocess = False
wsgi.multithread = False
wsgi.run_once = False
wsgi.url_scheme = 'http'
wsgi.version = '(1, 0)'

Settings:
Using settings module poulpe.settings.prod
ABSOLUTE_URL_OVERRIDES = {}
ACCOUNT_ADAPTER = 'shared.allauth_adapter.AccountAdapter'
ACCOUNT_DETAILS_URL = '/'
ACCOUNT_HOME_URL = '/'
ADMINS = [('Erkan', 'narmanli@clipper.ens.fr'), ('Martin', 'kerl@wkerl.me')]
ALLOWED_HOSTS = ['poulpe.ens.fr']
APPEND_SLASH = True
AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')"
AUTH_PASSWORD_VALIDATORS = '********************'
AUTH_USER_MODEL = 'users.User'
BASE_DIR = '/srv/poulpe.ens.fr/poulpe/code'
CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS = 'default'
CACHE_MIDDLEWARE_KEY_PREFIX = '********************'
CACHE_MIDDLEWARE_SECONDS = 600
CAS_EMAIL_FORMAT = '%s@clipper.ens.fr'
CAS_FORCE_CHANGE_USERNAME_CASE = 'lower'
CAS_IGNORE_REFERER = True
CAS_LOGIN_MSG = None
CAS_REDIRECT_URL = '/'
CAS_SERVER_URL = 'https://cas.eleves.ens.fr/'
CAS_VERIFY_URL = 'https://cas.eleves.ens.fr/'
CAS_VERSION = '2'
CREATE_USER_KEY = '********************'
CSRF_COOKIE_AGE = 31449600
CSRF_COOKIE_DOMAIN = None
CSRF_COOKIE_HTTPONLY = False
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_PATH = '/'
CSRF_COOKIE_SAMESITE = 'Lax'
CSRF_COOKIE_SECURE = False
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS = []
CSRF_USE_SESSIONS = False
DATABASES = {'default': {'NAME': 'poulpe', 'OPTIONS': {}, 'USER': 'poulpe', 'TIME_ZONE': None, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'NAME': None, 'CHARSET': None, 'COLLATION': None, 'MIRROR': None}}}
DATABASE_ROUTERS = []
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
DATETIME_FORMAT = 'N j, Y, P'
DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y']
DATE_FORMAT = 'N j, Y'
DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y']
DBNAME = 'poulpe'
DBPASSWD = '********************'
DBUSER = 'poulpe'
DEBUG = False
DEBUG_PROPAGATE_EXCEPTIONS = False
DECIMAL_SEPARATOR = '.'
DEFAULT_CHARSET = 'utf-8'
DEFAULT_CONTENT_TYPE = 'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE = ''
DEFAULT_TABLESPACE = ''
DISALLOWED_USER_AGENTS = []
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'localhost'
EMAIL_HOST_PASSWORD = '********************'
EMAIL_HOST_USER = ''
EMAIL_PORT = 25
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = '********************'
EMAIL_SUBJECT_PREFIX = '[Django] '
EMAIL_TIMEOUT = None
EMAIL_USE_LOCALTIME = False
EMAIL_USE_SSL = False
EMAIL_USE_TLS = False
FILE_CHARSET = 'utf-8'
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
FILE_UPLOAD_PERMISSIONS = None
FILE_UPLOAD_TEMP_DIR = None
FIRST_DAY_OF_WEEK = 0
FIXTURE_DIRS = []
FORCE_SCRIPT_NAME = None
FORMAT_MODULE_PATH = None
FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS = []
INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'bootstrapform', 'widget_tweaks', 'taggit', 'django_tables2', 'django_filters', 'bootstrap3', 'allauth_ens', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth_cas', 'allauth_ens.providers.clipper', 'communication', 'equipment', 'event', 'shared', 'users']
INTERNAL_IPS = []
LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')]
LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur']
LANGUAGE_CODE = 'fr-fr'
LANGUAGE_COOKIE_AGE = None
LANGUAGE_COOKIE_DOMAIN = None
LANGUAGE_COOKIE_NAME = 'django_language'
LANGUAGE_COOKIE_PATH = '/'
LOCALE_PATHS = []
LOGGING = {}
LOGGING_CONFIG = 'logging.config.dictConfig'
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/compte/login/'
LOGOUT_REDIRECT_URL = 'shared:home'
LOGOUT_URL = '/compte/logout/'
MANAGERS = []
MEDIA_ROOT = '/srv/poulpe.ens.fr/poulpe/media'
MEDIA_URL = '/media/'
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware']
MIGRATION_MODULES = {}
MONTH_DAY_FORMAT = 'F j'
NUMBER_GROUPING = 0
PASSWORD_HASHERS = '********************'
PASSWORD_RESET_TIMEOUT_DAYS = '********************'
PREPEND_WWW = False
REDIS_DB = 0
REDIS_HOST = '127.0.0.1'
REDIS_PASSWD = '********************'
REDIS_PORT = 6379
REST_FRAMEWORK = {'PAGE_SIZE': 10, 'TEST_REQUEST_DEFAULT_FORMAT': 'json', 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.AllowAny']}
ROOT_URLCONF = 'poulpe.urls'
SECRET_KEY = '********************'
SECURE_BROWSER_XSS_FILTER = False
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_PROXY_SSL_HEADER = None
SECURE_REDIRECT_EXEMPT = []
SECURE_SSL_HOST = None
SECURE_SSL_REDIRECT = False
SERVER_EMAIL = 'poulpe@cof.ens.fr'
SESSION_CACHE_ALIAS = 'default'
SESSION_COOKIE_AGE = 1209600
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_NAME = 'sessionid'
SESSION_COOKIE_PATH = '/'
SESSION_COOKIE_SAMESITE = 'Lax'
SESSION_COOKIE_SECURE = False
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_FILE_PATH = None
SESSION_SAVE_EVERY_REQUEST = False
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE = 'poulpe.settings.prod'
SHORT_DATETIME_FORMAT = 'm/d/Y P'
SHORT_DATE_FORMAT = 'm/d/Y'
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS = []
SITE_ID = 1
SOCIALACCOUNT_ADAPTER = 'shared.allauth_adapter.SocialAccountAdapter'
SOCIALACCOUNT_PROVIDERS = {'clipper': {'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT': True, 'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL': 20}}
STATICFILES_DIRS = []
STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT = '/srv/poulpe.ens.fr/public/static'
STATIC_URL = '/static/'
TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'shared.shared.context_processor']}, 'DIRS': [], 'APP_DIRS': True}]
TEST_NON_SERIALIZED_APPS = []
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR = ','
TIME_FORMAT = 'P'
TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
TIME_ZONE = 'Europe/Paris'
USE_I18N = True
USE_L10N = True
USE_THOUSAND_SEPARATOR = False
USE_TZ = True
USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = False
WSGI_APPLICATION = None
X_FRAME_OPTIONS = 'SAMEORIGIN'
YEAR_MONTH_FORMAT = 'F Y'
``` Internal Server Error: /admin/event/activity/add/ TypeError at /admin/event/activity/add/ unorderable types: int() > NoneType() Request Method: POST Request URL: http://poulpe.ens.fr/admin/event/activity/add/ Django Version: 2.1 Python Executable: /srv/poulpe.ens.fr/poulpe/venv/bin/python3 Python Version: 3.5.3 Python Path: ['/srv/poulpe.ens.fr/poulpe/code', '/srv/poulpe.ens.fr/poulpe/venv/bin', '/srv/poulpe.ens.fr/poulpe/venv/lib/python35.zip', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/plat-x86_64-linux-gnu', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/lib-dynload', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages'] Server time: dim, 24 Mar 2019 18:05:57 +0100 Installed Applications: ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'bootstrapform', 'widget_tweaks', 'taggit', 'django_tables2', 'django_filters', 'bootstrap3', 'allauth_ens', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth_cas', 'allauth_ens.providers.clipper', 'communication', 'equipment', 'event', 'shared', 'users'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Traceback: File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/exception.py" in inner 34. response = get_response(request) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response 126. response = self.process_exception_by_middleware(e, request) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/core/handlers/base.py" in _get_response 124. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in wrapper 607. return self.admin_site.admin_view(view)(*args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view 142. response = view_func(request, *args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 44. response = view_func(request, *args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/sites.py" in inner 223. return view(request, *args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in add_view 1647. return self.changeform_view(request, None, form_url, extra_context) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapper 45. return bound_method(*args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/utils/decorators.py" in _wrapped_view 142. response = view_func(request, *args, **kwargs) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in changeform_view 1536. return self._changeform_view(request, object_id, form_url, extra_context) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/contrib/admin/options.py" in _changeform_view 1568. form_validated = form.is_valid() File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in is_valid 185. return self.is_bound and not self.errors File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in errors 180. self.full_clean() File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/forms.py" in full_clean 383. self._post_clean() File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/forms/models.py" in _post_clean 403. self.instance.full_clean(exclude=exclude, validate_unique=False) File "/srv/poulpe.ens.fr/poulpe/venv/lib/python3.5/site-packages/django/db/models/base.py" in full_clean 1136. self.clean() File "/srv/poulpe.ens.fr/poulpe/code/event/models.py" in clean 225. if self.get_herited('min_perm') > self.get_herited('max_perm'): Exception Type: TypeError at /admin/event/activity/add/ Exception Value: unorderable types: int() > NoneType() Request information: USER: XXXXXXXXX GET: No GET data POST: end_1 = '00:45' csrfmiddlewaretoken = XXXXXXXXXXXXXX end_0 = '05/04/2019' title = 'Installation Lino' equipmentattribution_set-MIN_NUM_FORMS = '0' is_public = '2' equipmentattribution_set-__prefix__-activity = '' max_perm = '' parent = '14' equipmentattribution_set-TOTAL_FORMS = '0' remarks = '' equipmentattribution_set-__prefix__-id = '' _save = 'Enregistrer' equipmentattribution_set-MAX_NUM_FORMS = '1000' equipmentattribution_set-__prefix__-remarks = '' beginning_0 = '04/04/2019' equipmentattribution_set-INITIAL_FORMS = '0' min_perm = '8' places = '3' equipmentattribution_set-__prefix__-amount = '' event = '5' has_perm = '2' beginning_1 = '22:45' description = '' FILES: No FILES data COOKIES: csrftoken = XXXXXXXXXXXXXXXX sessionid = XXXXXXXXXXXXXXXX META: CONTENT_LENGTH = '641' CONTENT_TYPE = 'application/x-www-form-urlencoded' CSRF_COOKIE = XXXXXXXXXXXXXXXX HTTP_ACCEPT = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' HTTP_ACCEPT_ENCODING = 'gzip, deflate, br' HTTP_ACCEPT_LANGUAGE = 'de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' HTTP_CACHE_CONTROL = 'max-age=0' HTTP_CONNECTION = 'close' HTTP_COOKIE = 'csrftoken=XXXXXXXXXXXXXXXX; sessionid=XXXXXXXXXXXXXXXX' HTTP_HOST = 'poulpe.ens.fr' HTTP_ORIGIN = 'https://poulpe.ens.fr' HTTP_REFERER = 'https://poulpe.ens.fr/admin/event/activity/add/' HTTP_UPGRADE_INSECURE_REQUESTS = '1' HTTP_USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 OPR/58.0.3135.107' HTTP_X_FORWARDED_FOR = '129.199.157.98' HTTP_X_FORWARDED_PROTO = 'https' HTTP_X_REAL_IP = '129.199.157.98' HTTP_X_SSL_CLIENT_VERIFY = 'NONE' PATH_INFO = '/admin/event/activity/add/' QUERY_STRING = '' RAW_URI = '/admin/event/activity/add/' REMOTE_ADDR = '' REQUEST_METHOD = 'POST' SCRIPT_NAME = '' SERVER_NAME = 'poulpe.ens.fr' SERVER_PORT = '80' SERVER_PROTOCOL = 'HTTP/1.0' SERVER_SOFTWARE = 'gunicorn/19.9.0' gunicorn.socket = <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/srv/poulpe.ens.fr/poulpe/poulpe.sock> wsgi.errors = <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fbf0fe86eb8> wsgi.file_wrapper = '' wsgi.input = <gunicorn.http.body.Body object at 0x7fbf0fe86208> wsgi.multiprocess = False wsgi.multithread = False wsgi.run_once = False wsgi.url_scheme = 'http' wsgi.version = '(1, 0)' Settings: Using settings module poulpe.settings.prod ABSOLUTE_URL_OVERRIDES = {} ACCOUNT_ADAPTER = 'shared.allauth_adapter.AccountAdapter' ACCOUNT_DETAILS_URL = '/' ACCOUNT_HOME_URL = '/' ADMINS = [('Erkan', 'narmanli@clipper.ens.fr'), ('Martin', 'kerl@wkerl.me')] ALLOWED_HOSTS = ['poulpe.ens.fr'] APPEND_SLASH = True AUTHENTICATION_BACKENDS = "('django.contrib.auth.backends.ModelBackend', 'allauth.account.auth_backends.AuthenticationBackend')" AUTH_PASSWORD_VALIDATORS = '********************' AUTH_USER_MODEL = 'users.User' BASE_DIR = '/srv/poulpe.ens.fr/poulpe/code' CACHES = {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} CACHE_MIDDLEWARE_ALIAS = 'default' CACHE_MIDDLEWARE_KEY_PREFIX = '********************' CACHE_MIDDLEWARE_SECONDS = 600 CAS_EMAIL_FORMAT = '%s@clipper.ens.fr' CAS_FORCE_CHANGE_USERNAME_CASE = 'lower' CAS_IGNORE_REFERER = True CAS_LOGIN_MSG = None CAS_REDIRECT_URL = '/' CAS_SERVER_URL = 'https://cas.eleves.ens.fr/' CAS_VERIFY_URL = 'https://cas.eleves.ens.fr/' CAS_VERSION = '2' CREATE_USER_KEY = '********************' CSRF_COOKIE_AGE = 31449600 CSRF_COOKIE_DOMAIN = None CSRF_COOKIE_HTTPONLY = False CSRF_COOKIE_NAME = 'csrftoken' CSRF_COOKIE_PATH = '/' CSRF_COOKIE_SAMESITE = 'Lax' CSRF_COOKIE_SECURE = False CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure' CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS = [] CSRF_USE_SESSIONS = False DATABASES = {'default': {'NAME': 'poulpe', 'OPTIONS': {}, 'USER': 'poulpe', 'TIME_ZONE': None, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql', 'HOST': 'localhost', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'PASSWORD': '********************', 'PORT': 5432, 'TEST': {'NAME': None, 'CHARSET': None, 'COLLATION': None, 'MIRROR': None}}} DATABASE_ROUTERS = [] DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000 DATETIME_FORMAT = 'N j, Y, P' DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] DATE_FORMAT = 'N j, Y' DATE_INPUT_FORMATS = ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] DBNAME = 'poulpe' DBPASSWD = '********************' DBUSER = 'poulpe' DEBUG = False DEBUG_PROPAGATE_EXCEPTIONS = False DECIMAL_SEPARATOR = '.' DEFAULT_CHARSET = 'utf-8' DEFAULT_CONTENT_TYPE = 'text/html' DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL = 'webmaster@localhost' DEFAULT_INDEX_TABLESPACE = '' DEFAULT_TABLESPACE = '' DISALLOWED_USER_AGENTS = [] EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'localhost' EMAIL_HOST_PASSWORD = '********************' EMAIL_HOST_USER = '' EMAIL_PORT = 25 EMAIL_SSL_CERTFILE = None EMAIL_SSL_KEYFILE = '********************' EMAIL_SUBJECT_PREFIX = '[Django] ' EMAIL_TIMEOUT = None EMAIL_USE_LOCALTIME = False EMAIL_USE_SSL = False EMAIL_USE_TLS = False FILE_CHARSET = 'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS = None FILE_UPLOAD_HANDLERS = ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 FILE_UPLOAD_PERMISSIONS = None FILE_UPLOAD_TEMP_DIR = None FIRST_DAY_OF_WEEK = 0 FIXTURE_DIRS = [] FORCE_SCRIPT_NAME = None FORMAT_MODULE_PATH = None FORM_RENDERER = 'django.forms.renderers.DjangoTemplates' IGNORABLE_404_URLS = [] INSTALLED_APPS = ['django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.sites', 'bootstrapform', 'widget_tweaks', 'taggit', 'django_tables2', 'django_filters', 'bootstrap3', 'allauth_ens', 'allauth', 'allauth.account', 'allauth.socialaccount', 'allauth_cas', 'allauth_ens.providers.clipper', 'communication', 'equipment', 'event', 'shared', 'users'] INTERNAL_IPS = [] LANGUAGES = [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] LANGUAGES_BIDI = ['he', 'ar', 'fa', 'ur'] LANGUAGE_CODE = 'fr-fr' LANGUAGE_COOKIE_AGE = None LANGUAGE_COOKIE_DOMAIN = None LANGUAGE_COOKIE_NAME = 'django_language' LANGUAGE_COOKIE_PATH = '/' LOCALE_PATHS = [] LOGGING = {} LOGGING_CONFIG = 'logging.config.dictConfig' LOGIN_REDIRECT_URL = '/' LOGIN_URL = '/compte/login/' LOGOUT_REDIRECT_URL = 'shared:home' LOGOUT_URL = '/compte/logout/' MANAGERS = [] MEDIA_ROOT = '/srv/poulpe.ens.fr/poulpe/media' MEDIA_URL = '/media/' MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] MIGRATION_MODULES = {} MONTH_DAY_FORMAT = 'F j' NUMBER_GROUPING = 0 PASSWORD_HASHERS = '********************' PASSWORD_RESET_TIMEOUT_DAYS = '********************' PREPEND_WWW = False REDIS_DB = 0 REDIS_HOST = '127.0.0.1' REDIS_PASSWD = '********************' REDIS_PORT = 6379 REST_FRAMEWORK = {'PAGE_SIZE': 10, 'TEST_REQUEST_DEFAULT_FORMAT': 'json', 'DEFAULT_PERMISSION_CLASSES': ['rest_framework.permissions.AllowAny']} ROOT_URLCONF = 'poulpe.urls' SECRET_KEY = '********************' SECURE_BROWSER_XSS_FILTER = False SECURE_CONTENT_TYPE_NOSNIFF = False SECURE_HSTS_INCLUDE_SUBDOMAINS = False SECURE_HSTS_PRELOAD = False SECURE_HSTS_SECONDS = 0 SECURE_PROXY_SSL_HEADER = None SECURE_REDIRECT_EXEMPT = [] SECURE_SSL_HOST = None SECURE_SSL_REDIRECT = False SERVER_EMAIL = 'poulpe@cof.ens.fr' SESSION_CACHE_ALIAS = 'default' SESSION_COOKIE_AGE = 1209600 SESSION_COOKIE_DOMAIN = None SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_NAME = 'sessionid' SESSION_COOKIE_PATH = '/' SESSION_COOKIE_SAMESITE = 'Lax' SESSION_COOKIE_SECURE = False SESSION_ENGINE = 'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_FILE_PATH = None SESSION_SAVE_EVERY_REQUEST = False SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE = 'poulpe.settings.prod' SHORT_DATETIME_FORMAT = 'm/d/Y P' SHORT_DATE_FORMAT = 'm/d/Y' SIGNING_BACKEND = 'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS = [] SITE_ID = 1 SOCIALACCOUNT_ADAPTER = 'shared.allauth_adapter.SocialAccountAdapter' SOCIALACCOUNT_PROVIDERS = {'clipper': {'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT': True, 'MESSAGE_SUGGEST_LOGOUT_ON_LOGOUT_LEVEL': 20}} STATICFILES_DIRS = [] STATICFILES_FINDERS = ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT = '/srv/poulpe.ens.fr/public/static' STATIC_URL = '/static/' TEMPLATES = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages', 'shared.shared.context_processor']}, 'DIRS': [], 'APP_DIRS': True}] TEST_NON_SERIALIZED_APPS = [] TEST_RUNNER = 'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR = ',' TIME_FORMAT = 'P' TIME_INPUT_FORMATS = ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] TIME_ZONE = 'Europe/Paris' USE_I18N = True USE_L10N = True USE_THOUSAND_SEPARATOR = False USE_TZ = True USE_X_FORWARDED_HOST = False USE_X_FORWARDED_PORT = False WSGI_APPLICATION = None X_FRAME_OPTIONS = 'SAMEORIGIN' YEAR_MONTH_FORMAT = 'F Y' ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: thubrecht/poulpe#5
No description provided.