-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Shorten project name to match slug length #4856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This updates the just-merged migration to handle name as well
We shouldn't even hit this migration in prod:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -80,7 +80,7 @@ class Project(models.Model): | |||
# Generally from conf.py | |||
users = models.ManyToManyField(User, verbose_name=_('User'), | |||
related_name='projects') | |||
name = models.CharField(_('Name'), max_length=255) | |||
name = models.CharField(_('Name'), max_length=63) | |||
# A DNS label can contain up to 63 characters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe is worth to move the comment above, so it covers both, name and slug?
Looks like the migration check wants to see a new migration file |
Codecov Report
@@ Coverage Diff @@
## master #4856 +/- ##
=======================================
Coverage 76.41% 76.41%
=======================================
Files 158 158
Lines 9990 9990
Branches 1262 1262
=======================================
Hits 7634 7634
Misses 2016 2016
Partials 340 340
|
This updates the just-merged migration to handle name as well