django-rest-framework-mongoengine icon indicating copy to clipboard operation
django-rest-framework-mongoengine copied to clipboard

No validation for primary key

Open AhabalTambal opened this issue 3 years ago • 1 comments

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?

AhabalTambal avatar Jan 31 '22 16:01 AhabalTambal

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

IATF avatar Jan 31 '22 16:01 IATF