From 7fcd9d6d2d270585d4f429aaebb072d09c2d1625 Mon Sep 17 00:00:00 2001 From: c0de Date: Thu, 1 Jun 2017 21:33:19 -0500 Subject: [PATCH] api_owners return active status instead of id --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index 882df86..7b8cb4f 100644 --- a/core/models.py +++ b/core/models.py @@ -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