must of the week is compulsory argument for news creation now

This commit is contained in:
Kuroshini 2019-12-18 14:59:20 +03:00
parent a8003dc1cc
commit 44c2616efe

View File

@ -190,7 +190,8 @@ class NewsBackOfficeBaseSerializer(NewsBaseSerializer):
extra_kwargs = { extra_kwargs = {
'backoffice_title': {'allow_null': False}, 'backoffice_title': {'allow_null': False},
'duplication_date': {'read_only': True}, 'duplication_date': {'read_only': True},
'locale_to_description_is_active': {'allow_null': False} 'locale_to_description_is_active': {'allow_null': False},
'must_of_the_week': {'allow_null': False},
} }
def create(self, validated_data): def create(self, validated_data):