Fix RelatedDomainSerializer model
Regression introduced by7d975637d5
partially fixed on48ef1f21e3
This commit is contained in:
parent
9a3b6dcbc3
commit
81c67778e5
|
@ -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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue