mirror of
https://github.com/gamaio/gama_api.git
synced 2024-12-22 10:32:41 +00:00
api_owners return active status instead of id
This commit is contained in:
parent
16f0a963be
commit
7fcd9d6d2d
@ -16,7 +16,7 @@ class api_owners(models.Model):
|
|||||||
active = models.BooleanField(blank=False)
|
active = models.BooleanField(blank=False)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return '%s (%s)' % (self.user.username, self.user.id)
|
return '%s (%s)' % (self.user.username, self.active)
|
||||||
|
|
||||||
|
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
|
Loading…
Reference in New Issue
Block a user