Skip to content

Commit

Permalink
Update languages fields with max_length equal 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dougppaz committed Jul 12, 2018
1 parent 8db68f8 commit 478dd4d
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 3 deletions.
19 changes: 19 additions & 0 deletions bothub/common/migrations/0015_auto_20180712_2130.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.0.6 on 2018-07-12 21:30

import bothub.common.languages
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('common', '0014_auto_20180709_1909'),
]

operations = [
migrations.AlterField(
model_name='repository',
name='language',
field=models.CharField(help_text="Repository's examples language. The examples can be translated to other languages.", max_length=5, validators=[bothub.common.languages.validate_language], verbose_name='language'),
),
]
19 changes: 19 additions & 0 deletions bothub/common/migrations/0016_auto_20180712_2131.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.0.6 on 2018-07-12 21:31

import bothub.common.languages
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('common', '0015_auto_20180712_2130'),
]

operations = [
migrations.AlterField(
model_name='repositoryupdate',
name='language',
field=models.CharField(max_length=5, validators=[bothub.common.languages.validate_language], verbose_name='language'),
),
]
19 changes: 19 additions & 0 deletions bothub/common/migrations/0017_auto_20180712_2131.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 2.0.6 on 2018-07-12 21:31

import bothub.common.languages
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('common', '0016_auto_20180712_2131'),
]

operations = [
migrations.AlterField(
model_name='repositorytranslatedexample',
name='language',
field=models.CharField(help_text='Translation language', max_length=5, validators=[bothub.common.languages.validate_language], verbose_name='language'),
),
]
6 changes: 3 additions & 3 deletions bothub/common/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Meta:
help_text=_('Easy way to found and share repositories'))
language = models.CharField(
_('language'),
max_length=2,
max_length=5,
help_text=_('Repository\'s examples language. The examples can be ' +
'translated to other languages.'),
validators=[
Expand Down Expand Up @@ -292,7 +292,7 @@ class Meta:
related_name='updates')
language = models.CharField(
_('language'),
max_length=2,
max_length=5,
validators=[
languages.validate_language,
])
Expand Down Expand Up @@ -488,7 +488,7 @@ class Meta:
help_text=_('Example object'))
language = models.CharField(
_('language'),
max_length=2,
max_length=5,
help_text=_('Translation language'),
validators=[
languages.validate_language,
Expand Down

0 comments on commit 478dd4d

Please sign in to comment.