mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed unused __str__() methods in tests models.
Follow up to 6461583b6c
.
This commit is contained in:
parent
bb13711451
commit
555e3a848e
35 changed files with 2 additions and 400 deletions
|
@ -12,6 +12,3 @@ class Employee(models.Model):
|
|||
hire_date = models.DateField(blank=False, null=False)
|
||||
age = models.IntegerField(blank=False, null=False)
|
||||
classification = models.ForeignKey('Classification', on_delete=models.CASCADE, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return '{}, {}, {}, {}'.format(self.name, self.department, self.salary, self.hire_date)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue