diff options
author | Alasdair Nicol <alasdair@memset.com> | 2013-10-22 11:21:07 +0100 |
---|---|---|
committer | Alasdair Nicol <alasdair@memset.com> | 2013-10-23 13:45:03 +0100 |
commit | c3aa2948c6c14862407501290571f858ccf45b07 (patch) | |
tree | 6f0812d7db0fe2f5a6bf9e07f20ba7d442ce8789 /tests/custom_pk | |
parent | 317040a73b77be8f8210801793b2ce6d1a69301e (diff) | |
download | django-c3aa2948c6c14862407501290571f858ccf45b07.tar.gz |
Fixed #21298 -- Fixed E301 pep8 warnings
Diffstat (limited to 'tests/custom_pk')
-rw-r--r-- | tests/custom_pk/models.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/custom_pk/models.py b/tests/custom_pk/models.py index 9833b88706..5fffb84641 100644 --- a/tests/custom_pk/models.py +++ b/tests/custom_pk/models.py @@ -19,6 +19,7 @@ class Employee(models.Model): employee_code = models.IntegerField(primary_key=True, db_column = 'code') first_name = models.CharField(max_length=20) last_name = models.CharField(max_length=20) + class Meta: ordering = ('last_name', 'first_name') @@ -29,6 +30,7 @@ class Employee(models.Model): class Business(models.Model): name = models.CharField(max_length=20, primary_key=True) employees = models.ManyToManyField(Employee) + class Meta: verbose_name_plural = 'businesses' |