umutbozkurt/django-rest-framework-mongoengine

No validation for primary key

AhabalTambal opened this issue · 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?

IATF commented