melizeche / ayudapy

Humanitarian platform to help people help people
https://ayudapy.org
GNU Affero General Public License v3.0
111 stars 60 forks source link

Change city and city_code max_length to 50 #195

Closed melizeche closed 4 years ago

melizeche commented 4 years ago

in core.models change max_length and create the migration file

django.db.utils:DataError

/core.views:request_form

Apr 13, '20 9:01 pm

Time

ayudapy(Python Application)

Instance

1

Count
4 similar errors to this in the last 24 hours
Next error
Error message

django.db.utils:DataError: value too long for type character varying(30)
Stack trace
Traceback (most recent call last):
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/api/wsgi_application.py", line 666, in _nr_wsgi_application_wrapper_
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/api/wsgi_application.py", line 194, in __init__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/api/wsgi_application.py", line 556, in _nr_wsgi_application_wrapper_
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/wsgi.py", line 141, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/hooks/framework_django.py", line 419, in _nr_wrapper_BaseHandler_get_response_
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 75, in get_response
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/utils/deprecation.py", line 94, in __call__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/hooks/framework_django.py", line 540, in wrapper
File "./core/views.py", line 43, in request_form
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/forms/models.py", line 458, in save
File "./core/models.py", line 121, in save
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/base.py", line 741, in save
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/base.py", line 779, in save_base
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/base.py", line 870, in _save_table
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/base.py", line 908, in _do_insert
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/query.py", line 1186, in _insert
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1375, in execute_sql
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 67, in execute
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/django/db/backends/utils.py", line 84, in _execute
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/hooks/database_psycopg2.py", line 51, in execute
File "/home/marce/ayudapy/env/lib/python3.6/site-packages/newrelic/hooks/database_dbapi2.py", line 25, in execute