two more related user problems

Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
Nico Schottelius 2020-02-21 11:43:17 +01:00
parent 6ba224638a
commit a5695ffa48
2 changed files with 8 additions and 2 deletions

View file

@ -1,10 +1,12 @@
from django.contrib.auth.models import User, Group from django.contrib.auth.models import Group
from django.contrib.auth import get_user_model
from rest_framework import serializers from rest_framework import serializers
class UserSerializer(serializers.HyperlinkedModelSerializer): class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta: class Meta:
model = User model = get_user_model()
fields = ['url', 'username', 'email', 'groups'] fields = ['url', 'username', 'email', 'groups']

View file

@ -0,0 +1,4 @@
from django.apps import AppConfig
class AuthConfig(AppConfig):
name = 'uncloud_auth'