hamidreza abedi

Results 37 comments of hamidreza abedi

@Gagaro No, it seems like soft delete has problems with children-parent models, also has with django-mptt for tree models. related issue in django-mptt repo: https://github.com/django-mptt/django-mptt/issues/745

@Gagaro Yes i do have a delete method, but it calls the super method and returns the result properly: ```py def delete(self, *args, **kwargs): """ This method calls the superclass's...

@Gagaro I found where the problem is, when i try to delete one object normally everything works just fine, but when i call the queryset.delete method in the admin, it...

> Do you have more parent classes? Do you have a value for `result` if you try to print it? there is no result it raises errors

@Gagaro `from safedelete.admin import SafeDeleteAdmin` `from safedelete.models import SafeDeleteModel`

@Gagaro Oh i see, delete got overridden and is returning data.ok i got it.

Same issue here with drf: ```py class BlogSerializer(TaggitSerializer, serializers.ModelSerializer): tags = TagListSerializerField() class Meta: model = Blog fields = ( "tags", ) ``` and when i try to add one...

I see. well as i said the tag is optional and if it wasn't provided then we could use the field name as default value for errors. and if there...

Ok I thought about this again and the second approach is not a good one tbh. The error and the parser must use the same source. Is it possible for...