Fix RelatedDomainSerializer model

Regression introduced by 7d975637d5
partially fixed on 48ef1f21e3
This commit is contained in:
Santiago L 2021-06-08 12:58:36 +02:00
parent 9a3b6dcbc3
commit 81c67778e5

View file

@ -8,7 +8,7 @@ from .models import Mailbox, Address
class RelatedDomainSerializer(AccountSerializerMixin, RelatedHyperlinkedModelSerializer):
class Meta:
model = Address.domain.field.model
model = Address.domain.field.related_model
fields = ('url', 'id', 'name')