umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 167 forks source link

No validation for primary key #287

Open AhabalTambal opened 2 years ago

AhabalTambal commented 2 years ago

hey, i have these models and i use django viewsets

class SomeModel(document): value = StringField(primary_key=true) label = StringField(required=True)

class SomeModelSerialization(DocumentSerializer): class Meta: model = SomeModel

if i make a post to /somemodel without any body, it only asks me for label and not for value. why is that?

IATF commented 2 years ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。