Skip to content

Commit

Permalink
Adding new field, for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederporto committed Dec 4, 2024
1 parent d9b77cc commit 17f5e30
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions metrics/migrations/0015_metric_text_en.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.1.1 on 2024-12-03 15:55

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('metrics', '0014_activity_area_responsible'),
]

operations = [
migrations.AddField(
model_name='metric',
name='text_en',
field=models.CharField(blank=True, default='', max_length=420),
),
]
1 change: 1 addition & 0 deletions metrics/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def clean(self):

class Metric(models.Model):
text = models.CharField(max_length=420)
text_en = models.CharField(max_length=420, default="", blank=True)

# Content metrics
wikipedia_created = models.IntegerField(null=True, default=0)
Expand Down

0 comments on commit 17f5e30

Please sign in to comment.