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
1 changed files with 1 additions and 1 deletions

View File

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