tn
Size: a a a
tn
DT
def create(self, validated_data):
content = validated_data.get("content")
if user:
main_user = user
else:
main_user = User.objects.all().first()
DT
parent_qs = Comment.objects.filter(id=parent_id)
if parent_qs.exists() and parent_qs.count() ==1:
self.parent_obj = parent_qs.first()
DT
tn
DT
tn
DT
JG
DT
JG
DT
JG
self.file = None
?DT
self.file = None
?JG
DT
JG
DT
JG
JG