mirror of
https://github.com/lemeow125/Django-NotesApp.git
synced 2025-05-16 19:48:11 +08:00
Removed unused custom account serializer
This commit is contained in:
parent
c9d25f73c2
commit
5b296ac367
3 changed files with 0 additions and 13 deletions
|
@ -1,13 +1,3 @@
|
|||
from django.contrib.auth.models import User
|
||||
from rest_framework import serializers
|
||||
from notes.models import Note
|
||||
|
||||
|
||||
class CustomUserSerializer(serializers.ModelSerializer):
|
||||
notes = serializers.PrimaryKeyRelatedField(
|
||||
many=True, allow_null=True, read_only=True)
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ['id', 'username', 'notes']
|
||||
read_only_fields = ['id', 'notes']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue