Good morning, i am doing a simple interface which has a foreign to the
default user model:

I find some difficulties in writing the serializer as there's not
serializer for the User default model.
Any idea of how can i solve this?
Below is my model code.

Regards.
AGnese Camellini

from django.conf import settings

class NovelUser(models.Model):
    novel = models.ForeignKey(Novel, on_delete=models.DO_NOTHING)
    user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=
models.DO_NOTHING)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACXuh-SR_dgBxAKWmrxtYXgDGCT1a51sDBKgK%3D%3Dz369w%3DL6RRg%40mail.gmail.com.

Reply via email to