|
12 | 12 |
|
13 | 13 |
|
14 | 14 | MESSAGES = {
|
15 |
| - 'E%d01' % BASE_ID: ("__unicode__ on a model must be callable (%s)", |
16 |
| - 'model-unicode-not-callable', |
17 |
| - "Django models require a callable __unicode__ method"), |
18 |
| - 'W%d01' % BASE_ID: ("No __unicode__ method on model (%s)", |
19 |
| - 'model-missing-unicode', |
20 |
| - "Django models should implement a __unicode__ method for string representation"), |
21 |
| - 'W%d02' % BASE_ID: ("Found __unicode__ method on model (%s). Python3 uses __str__.", |
22 |
| - 'model-has-unicode', |
23 |
| - "Django models should not implement a __unicode__ " |
24 |
| - "method for string representation when using Python3"), |
25 |
| - 'W%d03' % BASE_ID: ("Model does not explicitly define __unicode__ (%s)", |
26 |
| - 'model-no-explicit-unicode', |
27 |
| - "Django models should implement a __unicode__ method for string representation. " |
28 |
| - "A parent class of this model does, but ideally all models should be explicit.") |
| 15 | + f'E{BASE_ID}01': ("__unicode__ on a model must be callable (%s)", |
| 16 | + 'model-unicode-not-callable', |
| 17 | + "Django models require a callable __unicode__ method"), |
| 18 | + f'W{BASE_ID}01': ("No __unicode__ method on model (%s)", |
| 19 | + 'model-missing-unicode', |
| 20 | + "Django models should implement a __unicode__ method for string representation"), |
| 21 | + f'W{BASE_ID}02': ("Found __unicode__ method on model (%s). Python3 uses __str__.", |
| 22 | + 'model-has-unicode', |
| 23 | + "Django models should not implement a __unicode__ " |
| 24 | + "method for string representation when using Python3"), |
| 25 | + f'W{BASE_ID}03': ("Model does not explicitly define __unicode__ (%s)", |
| 26 | + 'model-no-explicit-unicode', |
| 27 | + "Django models should implement a __unicode__ method for string representation. " |
| 28 | + "A parent class of this model does, but ideally all models should be explicit.") |
29 | 29 | }
|
30 | 30 |
|
31 | 31 |
|
|
0 commit comments