From 81c67778e500fa9349841db29fe2b0c7ea4a6d4b Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 8 Jun 2021 12:58:36 +0200 Subject: [PATCH] Fix RelatedDomainSerializer model Regression introduced by 7d975637d53d3711b5f8fbe49241d685c4bcf98d partially fixed on 48ef1f21e3b679de756aa5aa5e1d2e8619e0c3b5 --- orchestra/contrib/mailboxes/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchestra/contrib/mailboxes/serializers.py b/orchestra/contrib/mailboxes/serializers.py index 264afac8..36471996 100644 --- a/orchestra/contrib/mailboxes/serializers.py +++ b/orchestra/contrib/mailboxes/serializers.py @@ -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')