mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-25 11:04:04 +03:00
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:
parent
41d81b6286
commit
b9550a1dab
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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] }}",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user