]> git.ipfire.org Git - thirdparty/patchwork.git/commit
models: Add 'Series._format_name' helper
authorSean Farley <sean@farley.io>
Tue, 11 Jul 2017 18:41:36 +0000 (11:41 -0700)
committerStephen Finucane <stephen@that.guru>
Wed, 12 Jul 2017 09:33:45 +0000 (10:33 +0100)
commit6f1f7fa04df3f34c5843db3da22f246078f86cb1
tree9e67b279031a09b8179515fa560733f925b875f0
parent56d39031f52907eb62cd0562c5f46edf2caf35dd
models: Add 'Series._format_name' helper

This method already exists, but is nested and its functionality
duplicated elsewhere. Making this a staticmethod allows us to reuse it.

Signed-off-by: Sean Farley <sean@farley.io>
Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/models.py
patchwork/tests/test_series.py