Fix display_name rather than username being used in API

This commit is contained in:
rubenwardy 2020-05-27 17:27:41 +01:00
parent dc455bcd87
commit fc5cca9def
1 changed files with 2 additions and 2 deletions

View File

@ -537,7 +537,7 @@ class Package(db.Model):
return {
"name": self.name,
"title": self.title,
"author": self.author.display_name,
"author": self.author.username,
"short_description": self.short_desc,
"type": self.type.toName(),
"release": release and release.id,
@ -548,7 +548,7 @@ class Package(db.Model):
tnurl = self.getThumbnailURL(1)
release = self.getDownloadRelease(version=version, protonum=protonum)
return {
"author": self.author.display_name,
"author": self.author.username,
"name": self.name,
"title": self.title,
"short_description": self.short_desc,