add string representation to Package
This commit is contained in:
parent
4b5f13ea48
commit
906eaea14a
1 changed files with 3 additions and 0 deletions
|
@ -59,3 +59,6 @@ class Package(models.Model):
|
|||
data['depends'] = tuple(package.name for package in self.depends.all().order_by('name'))
|
||||
|
||||
return data
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue