Prevent error in data migration caused by long project name (#4525)

* Test very long project names on CI

* Fix migration
This commit is contained in:
Bruno Alla 2023-08-14 23:00:26 +01:00 committed by GitHub
parent 41d81b6286
commit b9550a1dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ jobs:
- name: Webpack - name: Webpack
args: "frontend_pipeline=Webpack use_heroku=y" args: "frontend_pipeline=Webpack use_heroku=y"
- name: Email Username - name: Email Username
args: "username_type=email ci_tool=Github" args: "username_type=email ci_tool=Github project_name='Something superduper long - the great amazing project' project_slug=my_awesome_project"
name: "Bare metal ${{ matrix.script.name }}" name: "Bare metal ${{ matrix.script.name }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -40,8 +40,8 @@ def update_site_forward(apps, schema_editor):
_update_or_create_site_with_sequence( _update_or_create_site_with_sequence(
Site, Site,
schema_editor.connection, schema_editor.connection,
"{{cookiecutter.domain_name}}", "{{ cookiecutter.domain_name }}",
"{{cookiecutter.project_name}}", "{{ cookiecutter.project_name[:50] }}",
) )