Environment:
Request Method: GET
Request URL: http://localhost:8000/visit/mark/1/finished
Django Version: 2.0.13
Python Version: 3.6.12
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_cleanup',
'django_cron',
'django_otp',
'django_otp.plugins.otp_static',
'django_otp.plugins.otp_totp',
'two_factor',
'web',
'stronghold',
'debug_toolbar']
Installed Middleware:
['debug_toolbar.middleware.DebugToolbarMiddleware',
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django_otp.middleware.OTPMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'stronghold.middleware.LoginRequiredMiddleware']
Traceback:
File "/home/gawi/workspace/scheduling-system/env/lib/python3.6/site-packages/django/core/handlers/exception.py" in inner
35. response = get_response(request)
File "/home/gawi/workspace/scheduling-system/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
128. response = self.process_exception_by_middleware(e, request)
File "/home/gawi/workspace/scheduling-system/env/lib/python3.6/site-packages/django/core/handlers/base.py" in _get_response
126. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/gawi/workspace/scheduling-system/smash/web/views/visit.py" in visit_mark
125. visit.mark_as_finished()
File "/home/gawi/workspace/scheduling-system/smash/web/models/visit.py" in mark_as_finished
99. time_to_next_visit = relativedelta(**args) * (follow_up_number - 1) #calculated from first visit
Exception Type: TypeError at /visit/mark/1/finished
Exception Value: __init__() got an unexpected keyword argument 'b'years''