Skip to content

Commit

Permalink
series: Add a plural form for series
Browse files Browse the repository at this point in the history
That makes the admin interface nicer to read instead of 'Seriess'.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Feb 22, 2016
1 parent 1d49168 commit 0cbb172
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions patchwork/migrations/0017_series_meta.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('patchwork', '0016_add_delegation_rule_model'),
]

operations = [
migrations.AlterModelOptions(
name='series',
options={'verbose_name_plural': 'Series'},
),
]
3 changes: 3 additions & 0 deletions patchwork/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,9 @@ def filename(self):
def __str__(self):
return self.name

class Meta:
verbose_name_plural = 'Series'

# Signal one can listen to to know when a revision is complete (ie. has all of
# its patches)
series_revision_complete = django.dispatch.Signal(providing_args=["revision"])
Expand Down

0 comments on commit 0cbb172

Please sign in to comment.