mirror of
https://github.com/lemeow125/Django-NotesApp.git
synced 2025-05-16 11:38:11 +08:00
Added a custom user serializer to allow sorting of notes by user
This commit is contained in:
parent
65ad4a5f21
commit
ff7934407a
5 changed files with 23 additions and 2 deletions
|
@ -41,7 +41,8 @@ INSTALLED_APPS = [
|
|||
'rest_framework.authtoken',
|
||||
'notes.apps.NotesConfig',
|
||||
'corsheaders',
|
||||
'djoser'
|
||||
'djoser',
|
||||
'accounts',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -146,6 +147,9 @@ DJOSER = {
|
|||
'SEND_ACTIVATION_EMAIL': True,
|
||||
'SEND_CONFIRMATION_EMAIL': True,
|
||||
'ACTIVATION_URL': 'activation/{uid}/{token}',
|
||||
'SERIALIZERS': {
|
||||
'user': 'accounts.serializers.CustomUserSerializer'
|
||||
},
|
||||
}
|
||||
|
||||
EMAIL_HOST = 'sandbox.smtp.mailtrap.io'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue