Error trying to make a wiki page

Back to threads

  • Wiki Contributor

Traceback (most recent call last): File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 105, in _execute return self.cursor.execute(sql, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ psycopg2.errors.StringDataRightTruncation: value too long for type character varying(50) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/core/handlers/base.py", line 197, in _get_response response = wrapped_callback(request, callback_args, callback_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/contrib/auth/decorators.py", line 59, in _view_wrapper return view_func(request, args, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/srv/MyBusTimes/wiki/views.py", line 65, in create_wiki_page wiki_page.save() File "/srv/MyBusTimes/wiki/models.py", line 34, in save super(WikiPage, self).save(*args, kwargs) File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 902, in save self.save_base( File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1008, in save_base updated = self._save_table( ^^^^^^^^^^^^^^^^^ File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1169, in _save_table results = self._do_insert( ^^^^^^^^^^^^^^^^ File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/models/base.py", line 1210, in _do_insert return manager._insert( ^^^^^^^^^^^^^^^^ File "/srv/MyBusTimes/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method return getattr(self.get_queryse ... (truncated)


  • Wiki Contributor

Oh it worked now it was cuz my title was over 50 characters long, mb :sob:


  • Dev
  • Creator
  • They/Them
  • Pro Site Breaker
  • Wiki Contributor

it shouldnt be


  • Dev
  • Creator
  • They/Them
  • Pro Site Breaker
  • Wiki Contributor

fixed


  • Dev
  • Creator
  • They/Them
  • Pro Site Breaker
  • Wiki Contributor

the slug got pissy bc the title was longer than it expeted


Log in to reply.

MyBusTimes: V2.0.2