Skip to content

Commit

Permalink
let mailserver inherit l1
Browse files Browse the repository at this point in the history
  • Loading branch information
noamblitz committed Oct 18, 2024
1 parent 7bc231b commit 6cb027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octopoes/octopoes/models/ooi/dns/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class DNSMXRecord(DNSRecord):
object_type: Literal["DNSMXRecord"] = "DNSMXRecord"
dns_record_type: Literal["MX"] = "MX"

mail_hostname: Reference | None = ReferenceField(Hostname, default=None)
mail_hostname: Reference | None = ReferenceField(Hostname, default=None, max_inherit_scan_level=1)
preference: int | None = None

_reverse_relation_names = {"hostname": "dns_mx_records", "mail_hostname": "mail_server_of"}
Expand Down

0 comments on commit 6cb027a

Please sign in to comment.