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
|
||||
uuid = models.UUIDField(primary_key=True, editable=False, default=uuid.uuid4, unique=True, db_index=True)
|
||||
|
||||
# TODO: change it to owner
|
||||
user = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
related_name="%(app_label)s_%(class)s",
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ class ApplicationSerializer(serializers.ModelSerializer):
|
|||
class Meta:
|
||||
model = Application
|
||||
fields = ('uuid',
|
||||
'name',
|
||||
'client_id',
|
||||
'user',
|
||||
'allowed_scope',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue