Closed bsvetchine closed 8 years ago
@bsvetchine, thanks for report.
@vosi, can you check. because previously you are wrote this code https://github.com/LPgenerator/django-db-mailer/pull/21
You could not remove ModelAdmin, because django-reversion
and django-reversion-compare
is a ModelAdmin, if this apps was installed, and when you are using model translation, this apps is should be mix to one. At previous release this Admin mixins not found at admin.py file https://github.com/LPgenerator/django-db-mailer/blob/2ef5d6d5437601bd633d0ef43ed9c5defb67da7b/dbmail/admin.py. I think that we have to find another way to fix this.
@gotlium I updated the Pull request #39 changing TranslationModelAdmin inheritance order. It fixes the MRO problem.
Indeed I use django-reversion and django-reversion-compare in my project and django-db-mailer works without any problem in version 2.2.0.
@bsvetchine Current version is 2.3
. I think your fixes is for current version, not for 2.2.0
. You should test 2.3
on your project with your MRO fixes.
Yes indeed my fix is for version 2.3 only. I try to update dbmailer from version 2.2.0 to 2.3 in my project. That's when I face this MRO pb.
And I have no pb using my fix with dbmail in version 2.3 in my project
So now django-reversion
, django-reversion-compare
, django-modeltranslation
, grappelli-modeltranslation
working properly without any problems on your project?
I do not use grappelli-modeltranslation.
But using django-reversion, django-reversion-compare, django-modeltranslation and dbmailer version 2.3 with my fix, it works without any problems.
I think @skhaylov , @vosi will be check, and after we merge your pull-request and release new version to PyPi.
In dbmail/admin.py line 55, the definition of class TranslationModelAdmin causes a method resolution order error.
I am using python 2.7.3, django 1.8.7 and modeltranslation 0.10.2.