S
Size: a a a
S
EM
DT
EM
DT
EM
class UserStudentSerializer(serializers.ModelSerializer):
"""
Serializer for user`s phone only
"""
class Meta:
model = User
fields = ('phone',
SN
EM
DT
DT
EM
EM
<
chemist.Country.drug: (fields.E320) Field specifies on_delete=SET_NULL, but cannot be null.
HINT: Set null=True argument on the field, or change the on_delete rule.
r
chemist.Country.drug: (fields.E320) Field specifies on_delete=SET_NULL, but cannot be null.
HINT: Set null=True argument on the field, or change the on_delete rule.
<
AG
chemist.Country.drug: (fields.E320) Field specifies on_delete=SET_NULL, but cannot be null.
HINT: Set null=True argument on the field, or change the on_delete rule.
r
<
AG
on_delete.SET_NULL
, но оно не может быть NULL, потому что не поставил null=True, blank=True
AG