return name in application serializer
This commit is contained in:
parent
f01d6d3629
commit
c1b0172011
2 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,6 @@ class Application(AbstractApplication):
|
||||||
id=None
|
id=None
|
||||||
uuid = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4, unique=True, db_index=True)
|
uuid = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4, unique=True, db_index=True)
|
||||||
|
|
||||||
# TODO: change it to owner
|
|
||||||
user = models.ForeignKey(
|
user = models.ForeignKey(
|
||||||
settings.AUTH_USER_MODEL,
|
settings.AUTH_USER_MODEL,
|
||||||
related_name="%(app_label)s_%(class)s",
|
related_name="%(app_label)s_%(class)s",
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ class ApplicationSerializer(serializers.ModelSerializer):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Application
|
model = Application
|
||||||
fields = ('uuid',
|
fields = ('uuid',
|
||||||
|
'name',
|
||||||
'client_id',
|
'client_id',
|
||||||
'user',
|
'user',
|
||||||
'allowed_scope',
|
'allowed_scope',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue