api_owners return active status instead of id

This commit is contained in:
c0de 2017-06-01 21:33:19 -05:00
parent 16f0a963be
commit 7fcd9d6d2d

View File

@ -16,7 +16,7 @@ class api_owners(models.Model):
active = models.BooleanField(blank=False)
def __str__(self):
return '%s (%s)' % (self.user.username, self.user.id)
return '%s (%s)' % (self.user.username, self.active)
@python_2_unicode_compatible