netbox-plugin-dns 1.7.2__tar.gz → 1.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/PKG-INFO +1 -1
  2. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/__init__.py +1 -1
  3. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/dnssec_key_template.py +1 -0
  4. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/dnssec_policy.py +1 -0
  5. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/nameserver.py +1 -0
  6. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/record.py +13 -0
  7. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/record_template.py +1 -0
  8. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/registrar.py +1 -0
  9. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/registration_contact.py +1 -0
  10. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/view.py +10 -0
  11. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/zone.py +1 -0
  12. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/zone_template.py +1 -0
  13. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/views.py +6 -33
  14. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/view.py +6 -9
  15. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/management/commands/cleanup_database.py +16 -0
  16. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0033_remove_ptr_from_inactive_zones.py +3 -3
  17. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/view.py +8 -0
  18. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/utilities/ipam_dnssync.py +52 -0
  19. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/validators/dns_value.py +3 -0
  20. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/nameserver.py +2 -2
  21. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/registration_contact.py +1 -1
  22. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/view.py +1 -1
  23. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_plugin_dns.egg-info/PKG-INFO +1 -1
  24. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/pyproject.toml +1 -1
  25. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/LICENSE +0 -0
  26. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/README.md +0 -0
  27. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/field_serializers.py +0 -0
  28. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/nested_serializers.py +0 -0
  29. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers.py +0 -0
  30. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/__init__.py +0 -0
  31. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/serializers_/prefix.py +0 -0
  32. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/api/urls.py +0 -0
  33. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/apps.py +0 -0
  34. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/branching.py +0 -0
  35. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/__init__.py +0 -0
  36. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/dnssec_key_template.py +0 -0
  37. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/dnssec_policy.py +0 -0
  38. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/record.py +0 -0
  39. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/utilities.py +0 -0
  40. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/choices/zone.py +0 -0
  41. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/__init__.py +0 -0
  42. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/address.py +0 -0
  43. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/choice_array.py +0 -0
  44. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/ipam.py +0 -0
  45. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/network.py +0 -0
  46. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/rfc2317.py +0 -0
  47. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/fields/timeperiod.py +0 -0
  48. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filters.py +0 -0
  49. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/__init__.py +0 -0
  50. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/dnssec_key_template.py +0 -0
  51. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/dnssec_policy.py +0 -0
  52. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/nameserver.py +0 -0
  53. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/record.py +0 -0
  54. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/record_template.py +0 -0
  55. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/registrar.py +0 -0
  56. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/registration_contact.py +0 -0
  57. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/view.py +0 -0
  58. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/zone.py +0 -0
  59. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/filtersets/zone_template.py +0 -0
  60. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/__init__.py +0 -0
  61. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/dnssec_key_template.py +0 -0
  62. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/dnssec_policy.py +0 -0
  63. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/nameserver.py +0 -0
  64. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/record.py +0 -0
  65. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/record_template.py +0 -0
  66. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/registrar.py +0 -0
  67. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/registration_contact.py +0 -0
  68. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/zone.py +0 -0
  69. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/forms/zone_template.py +0 -0
  70. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/__init__.py +0 -0
  71. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/enums.py +0 -0
  72. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filter_lookups.py +0 -0
  73. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/__init__.py +0 -0
  74. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/dnssec_key_template.py +0 -0
  75. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/dnssec_policy.py +0 -0
  76. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/nameserver.py +0 -0
  77. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/record.py +0 -0
  78. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/record_template.py +0 -0
  79. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/registrar.py +0 -0
  80. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/registration_contact.py +0 -0
  81. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/view.py +0 -0
  82. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/zone.py +0 -0
  83. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/filters/zone_template.py +0 -0
  84. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/schema.py +0 -0
  85. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/graphql/types.py +0 -0
  86. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/jobs/__init__.py +0 -0
  87. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/jobs/record_expiration.py +0 -0
  88. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/de/LC_MESSAGES/django.mo +0 -0
  89. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/de/LC_MESSAGES/django.po +0 -0
  90. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/en/LC_MESSAGES/django.mo +0 -0
  91. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/en/LC_MESSAGES/django.po +0 -0
  92. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/fr/LC_MESSAGES/django.mo +0 -0
  93. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/locale/fr/LC_MESSAGES/django.po +0 -0
  94. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/management/commands/cleanup_rrset_ttl.py +0 -0
  95. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/management/commands/dns_check_zone_cut.py +0 -0
  96. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/management/commands/rebuild_dnssync.py +0 -0
  97. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/management/commands/setup_dnssync.py +0 -0
  98. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0001_squashed_netbox_dns_0_22.py +0 -0
  99. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0002_contact_description_registrar_description.py +0 -0
  100. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0003_default_view.py +0 -0
  101. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0004_create_and_assign_default_view.py +0 -0
  102. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0005_alter_zone_view_not_null.py +0 -0
  103. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0006_templating.py +0 -0
  104. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0007_alter_ordering_options.py +0 -0
  105. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0008_view_prefixes.py +0 -0
  106. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0009_rename_contact_registrationcontact.py +0 -0
  107. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0010_view_ip_address_filter.py +0 -0
  108. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0011_rename_related_fields.py +0 -0
  109. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0012_natural_ordering.py +0 -0
  110. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0013_zonetemplate_soa_mname_zonetemplate_soa_rname.py +0 -0
  111. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0014_alter_unique_constraints_lowercase.py +0 -0
  112. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0015_dnssec.py +0 -0
  113. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0016_dnssec_policy_status.py +0 -0
  114. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0017_dnssec_policy_zone_zone_template.py +0 -0
  115. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0018_zone_domain_status_zone_expiration_date.py +0 -0
  116. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0019_dnssecpolicy_parental_agents.py +0 -0
  117. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0020_remove_dnssecpolicy_parental_agents_and_more.py +0 -0
  118. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0021_alter_record_ptr_record.py +0 -0
  119. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0022_alter_record_ipam_ip_address.py +0 -0
  120. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0023_disable_ptr_false.py +0 -0
  121. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0024_zonetemplate_parental_agents.py +0 -0
  122. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0025_remove_zone_inline_signing_and_more.py +0 -0
  123. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0026_alter_dnssecpolicy_nsec3_opt_out.py +0 -0
  124. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0027_zone_comments.py +0 -0
  125. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0028_alter_zone_default_ttl_alter_zone_soa_minimum_and_more.py +0 -0
  126. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0029_alter_registrationcontact_street.py +0 -0
  127. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0030_dnsseckeytemplate_comments_dnsseckeytemplate_owner_and_more.py +0 -0
  128. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0031_record_netbox_dns_record_name_and_more.py +0 -0
  129. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0032_record_expiration_date.py +0 -0
  130. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0034_record_external_rfc2317_zone.py +0 -0
  131. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/0035_alter_dnsseckeytemplate_owner_and_more.py +0 -0
  132. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/migrations/__init__.py +0 -0
  133. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/mixins/__init__.py +0 -0
  134. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/mixins/object_modification.py +0 -0
  135. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/__init__.py +0 -0
  136. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/dnssec_key_template.py +0 -0
  137. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/dnssec_policy.py +0 -0
  138. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/nameserver.py +0 -0
  139. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/record.py +0 -0
  140. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/record_template.py +0 -0
  141. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/registrar.py +0 -0
  142. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/registration_contact.py +0 -0
  143. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/zone.py +0 -0
  144. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/models/zone_template.py +0 -0
  145. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/navigation.py +0 -0
  146. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/signals/__init__.py +0 -0
  147. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/signals/dnssec.py +0 -0
  148. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/signals/ipam_dnssync.py +0 -0
  149. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/__init__.py +0 -0
  150. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/dnssec_key_template.py +0 -0
  151. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/dnssec_policy.py +0 -0
  152. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/ipam_dnssync.py +0 -0
  153. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/nameserver.py +0 -0
  154. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/record.py +0 -0
  155. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/record_template.py +0 -0
  156. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/registrar.py +0 -0
  157. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/registration_contact.py +0 -0
  158. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/view.py +0 -0
  159. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/zone.py +0 -0
  160. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/tables/zone_template.py +0 -0
  161. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/template_content.py +0 -0
  162. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/dnsseckeytemplate.html +0 -0
  163. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/dnssecpolicy.html +0 -0
  164. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/nameserver.html +0 -0
  165. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/record/managed.html +0 -0
  166. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/record/related.html +0 -0
  167. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/record.html +0 -0
  168. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/recordtemplate.html +0 -0
  169. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/registrar.html +0 -0
  170. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/registrationcontact.html +0 -0
  171. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/view/button.html +0 -0
  172. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/view/prefix.html +0 -0
  173. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/view/related.html +0 -0
  174. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/view.html +0 -0
  175. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/base.html +0 -0
  176. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/child.html +0 -0
  177. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/child_zone.html +0 -0
  178. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/delegation_record.html +0 -0
  179. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/managed_record.html +0 -0
  180. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/record.html +0 -0
  181. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/registration.html +0 -0
  182. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/rfc2317_child_zone.html +0 -0
  183. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone/rfc2317_cname_records.html +0 -0
  184. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zone.html +0 -0
  185. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zonetemplate/child.html +0 -0
  186. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templates/netbox_dns/zonetemplate.html +0 -0
  187. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templatetags/__init__.py +0 -0
  188. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/templatetags/netbox_dns.py +0 -0
  189. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/urls.py +0 -0
  190. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/utilities/__init__.py +0 -0
  191. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/utilities/conversions.py +0 -0
  192. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/utilities/dns.py +0 -0
  193. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/validators/__init__.py +0 -0
  194. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/validators/dns_name.py +0 -0
  195. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/validators/dnssec.py +0 -0
  196. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/validators/rfc2317.py +0 -0
  197. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/__init__.py +0 -0
  198. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/dnssec_key_template.py +0 -0
  199. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/dnssec_policy.py +0 -0
  200. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/record.py +0 -0
  201. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/record_template.py +0 -0
  202. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/registrar.py +0 -0
  203. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/zone.py +0 -0
  204. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_dns/views/zone_template.py +0 -0
  205. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_plugin_dns.egg-info/SOURCES.txt +0 -0
  206. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_plugin_dns.egg-info/dependency_links.txt +0 -0
  207. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_plugin_dns.egg-info/requires.txt +0 -0
  208. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/netbox_plugin_dns.egg-info/top_level.txt +0 -0
  209. {netbox_plugin_dns-1.7.2 → netbox_plugin_dns-1.7.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: netbox-plugin-dns
3
- Version: 1.7.2
3
+ Version: 1.7.3
4
4
  Summary: NetBox DNS is a NetBox plugin for managing DNS data.
5
5
  Author-email: Peter Eckel <pe@sys4.de>
6
6
  Project-URL: Homepage, https://github.com/sys4/netbox-plugin-dns
@@ -4,7 +4,7 @@ from django.utils.translation import gettext_lazy as _
4
4
  from netbox.plugins import PluginConfig
5
5
  from netbox.plugins.utils import get_plugin_config
6
6
 
7
- __version__ = "1.7.2"
7
+ __version__ = "1.7.3"
8
8
 
9
9
 
10
10
  _branching_hooks_registered = False
@@ -33,6 +33,7 @@ class DNSSECKeyTemplateSerializer(PrimaryModelSerializer):
33
33
  "last_updated",
34
34
  "custom_fields",
35
35
  "tenant",
36
+ "owner",
36
37
  )
37
38
 
38
39
  brief_fields = (
@@ -52,6 +52,7 @@ class DNSSECPolicySerializer(PrimaryModelSerializer):
52
52
  "last_updated",
53
53
  "custom_fields",
54
54
  "tenant",
55
+ "owner",
55
56
  )
56
57
 
57
58
  brief_fields = (
@@ -28,6 +28,7 @@ class NameServerSerializer(PrimaryModelSerializer):
28
28
  "last_updated",
29
29
  "custom_fields",
30
30
  "tenant",
31
+ "owner",
31
32
  )
32
33
 
33
34
  brief_fields = (
@@ -43,6 +43,7 @@ class RecordSerializer(PrimaryModelSerializer):
43
43
  "absolute_value",
44
44
  "expiration_date",
45
45
  "expired",
46
+ "owner",
46
47
  )
47
48
 
48
49
  brief_fields = (
@@ -109,3 +110,15 @@ class RecordSerializer(PrimaryModelSerializer):
109
110
 
110
111
  def get_expired(self, instance):
111
112
  return instance.is_expired
113
+
114
+ def validate(self, data):
115
+ if self.instance is not None and self.instance.managed:
116
+ raise serializers.ValidationError(
117
+ _("{object} is managed, refusing update").format(object=self.instance)
118
+ )
119
+ if isinstance(data, dict) and data.get("managed"):
120
+ raise serializers.ValidationError(
121
+ _("'managed' is True, refusing to create or update a managed record")
122
+ )
123
+
124
+ return super().validate(data)
@@ -35,6 +35,7 @@ class RecordTemplateSerializer(PrimaryModelSerializer):
35
35
  "custom_fields",
36
36
  "tenant",
37
37
  "zone_templates",
38
+ "owner",
38
39
  )
39
40
 
40
41
  brief_fields = (
@@ -28,6 +28,7 @@ class RegistrarSerializer(PrimaryModelSerializer):
28
28
  "created",
29
29
  "last_updated",
30
30
  "custom_fields",
31
+ "owner",
31
32
  )
32
33
 
33
34
  brief_fields = (
@@ -34,6 +34,7 @@ class RegistrationContactSerializer(PrimaryModelSerializer):
34
34
  "created",
35
35
  "last_updated",
36
36
  "custom_fields",
37
+ "owner",
37
38
  )
38
39
  brief_fields = (
39
40
  "id",
@@ -1,9 +1,11 @@
1
+ from django.core.exceptions import ValidationError as DjangoValidationError
1
2
  from django.utils.translation import gettext as _
2
3
  from rest_framework import serializers
3
4
 
4
5
  from ipam.api.serializers import PrefixSerializer
5
6
  from netbox.api.serializers import PrimaryModelSerializer
6
7
  from netbox_dns.models import View
8
+ from netbox_dns.utilities import validate_ip_address_filter
7
9
  from tenancy.api.serializers import TenantSerializer
8
10
 
9
11
  __all__ = ("ViewSerializer",)
@@ -29,6 +31,7 @@ class ViewSerializer(PrimaryModelSerializer):
29
31
  "tenant",
30
32
  "prefixes",
31
33
  "ip_address_filter",
34
+ "owner",
32
35
  )
33
36
 
34
37
  brief_fields = (
@@ -59,6 +62,13 @@ class ViewSerializer(PrimaryModelSerializer):
59
62
  allow_null=True,
60
63
  )
61
64
 
65
+ def validate_ip_address_filter(self, value):
66
+ try:
67
+ validate_ip_address_filter(value)
68
+ except DjangoValidationError as exc:
69
+ raise serializers.ValidationError(exc.messages)
70
+ return value
71
+
62
72
  def create(self, validated_data):
63
73
  prefixes = validated_data.pop("prefixes", None)
64
74
 
@@ -65,6 +65,7 @@ class ZoneSerializer(PrimaryModelSerializer):
65
65
  "custom_fields",
66
66
  "tenant",
67
67
  "template",
68
+ "owner",
68
69
  )
69
70
 
70
71
  brief_fields = (
@@ -43,6 +43,7 @@ class ZoneTemplateSerializer(PrimaryModelSerializer):
43
43
  "custom_fields",
44
44
  "tenant",
45
45
  "record_templates",
46
+ "owner",
46
47
  )
47
48
 
48
49
  brief_fields = (
@@ -1,5 +1,4 @@
1
1
  from django.utils.translation import gettext as _
2
- from rest_framework import serializers
3
2
  from rest_framework.routers import APIRootView
4
3
 
5
4
  from ipam.filtersets import PrefixFilterSet
@@ -42,6 +41,7 @@ from netbox_dns.models import (
42
41
  Zone,
43
42
  ZoneTemplate,
44
43
  )
44
+ from utilities.exceptions import AbortRequest
45
45
 
46
46
 
47
47
  class NetBoxDNSRootView(APIRootView):
@@ -72,40 +72,13 @@ class RecordViewSet(NetBoxModelViewSet):
72
72
  serializer_class = RecordSerializer
73
73
  filterset_class = RecordFilterSet
74
74
 
75
- def create(self, request, *args, **kwargs):
76
- data = request.data
77
- if not isinstance(data, list):
78
- data = [data]
79
-
80
- if any(isinstance(record, dict) and record.get("managed") for record in data):
81
- raise serializers.ValidationError(_("'managed' is True, refusing create"))
82
-
83
- return super().create(request, *args, **kwargs)
84
-
85
- def destroy(self, request, *args, **kwargs):
86
- v_object = self.get_object()
87
- if v_object.managed:
88
- raise serializers.ValidationError(
89
- _("{object} is managed, refusing deletion").format(object=v_object)
90
- )
91
-
92
- return super().destroy(request, *args, **kwargs)
93
-
94
- def update(self, request, *args, **kwargs):
95
- v_object = self.get_object()
96
- if v_object.managed:
97
- raise serializers.ValidationError(
98
- _("{object} is managed, refusing update").format(object=v_object)
99
- )
100
-
101
- if request.data.get("managed"):
102
- raise serializers.ValidationError(
103
- _("{object} is unmanaged, refusing update to managed").format(
104
- object=v_object
105
- )
75
+ def perform_destroy(self, instance):
76
+ if instance.managed:
77
+ raise AbortRequest(
78
+ _("{object} is managed, refusing deletion").format(object=instance)
106
79
  )
107
80
 
108
- return super().update(request, *args, **kwargs)
81
+ super().perform_destroy(instance)
109
82
 
110
83
 
111
84
  class RegistrarViewSet(NetBoxModelViewSet):
@@ -1,10 +1,10 @@
1
1
  from django import forms
2
2
  from django.conf import settings
3
- from django.core.exceptions import FieldError, ValidationError
3
+ from django.core.exceptions import ValidationError
4
4
  from django.db.models import Count, Q
5
5
  from django.utils.translation import gettext_lazy as _
6
6
 
7
- from ipam.models import IPAddress, Prefix
7
+ from ipam.models import Prefix
8
8
  from netbox.context import current_request
9
9
  from netbox.forms import (
10
10
  PrimaryModelBulkEditForm,
@@ -17,8 +17,8 @@ from netbox_dns.models import View
17
17
  from netbox_dns.utilities import (
18
18
  check_dns_records,
19
19
  get_ip_addresses_by_prefix,
20
- get_query_from_filter,
21
20
  get_views_by_prefix,
21
+ validate_ip_address_filter,
22
22
  )
23
23
  from tenancy.forms import TenancyFilterForm, TenancyForm
24
24
  from tenancy.models import Tenant, TenantGroup
@@ -171,12 +171,9 @@ class ViewForm(ViewPrefixUpdateMixin, TenancyForm, PrimaryModelForm):
171
171
  ip_address_filter = self.cleaned_data.get("ip_address_filter")
172
172
 
173
173
  try:
174
- IPAddress.objects.filter(get_query_from_filter(ip_address_filter)).exists()
175
- except (FieldError, ValueError) as exc:
176
- self.add_error(
177
- "ip_address_filter",
178
- _("Invalid filter for IPAddress: {error}").format(error=exc),
179
- )
174
+ validate_ip_address_filter(ip_address_filter)
175
+ except ValidationError as exc:
176
+ self.add_error("ip_address_filter", exc)
180
177
 
181
178
  return ip_address_filter
182
179
 
@@ -1,9 +1,12 @@
1
1
  from django.core.management.base import BaseCommand
2
2
  from netaddr import IPAddress
3
3
 
4
+ from netbox.plugins.utils import get_plugin_config
4
5
  from netbox_dns.choices import RecordTypeChoices
5
6
  from netbox_dns.models import Record, Zone
6
7
 
8
+ ZONE_ACTIVE_STATUS_LIST = get_plugin_config("netbox_dns", "zone_active_status")
9
+
7
10
 
8
11
  class Command(BaseCommand):
9
12
  help = "Clean up NetBox DNS database"
@@ -17,6 +20,7 @@ class Command(BaseCommand):
17
20
  self._record_update_ip_address(**options)
18
21
  self._record_remove_orphaned_ptr_records(**options)
19
22
  self._record_remove_orphaned_address_records(**options)
23
+ self._record_remove_ptr_records_from_inactive_zones(**options)
20
24
 
21
25
  if options.get("verbosity"):
22
26
  self.stdout.write("Database cleanup completed.")
@@ -202,3 +206,15 @@ class Command(BaseCommand):
202
206
  if options.get("verbosity") > 1:
203
207
  self.stdout.write(f"Removing orphaned address record '{record}'")
204
208
  record.delete()
209
+
210
+ def _record_remove_ptr_records_from_inactive_zones(self, **options):
211
+ if options.get("verbosity"):
212
+ self.stdout.write("Removing managed PTR records from inactive zones")
213
+
214
+ for record in Record.objects.exclude(
215
+ zone__status__in=ZONE_ACTIVE_STATUS_LIST,
216
+ ).filter(
217
+ type=RecordTypeChoices.PTR,
218
+ managed=True,
219
+ ):
220
+ record.delete()
@@ -9,11 +9,11 @@ ZONE_ACTIVE_STATUS_LIST = get_plugin_config("netbox_dns", "zone_active_status")
9
9
  def remove_ptr_from_inactive_zones(apps, schema_editor):
10
10
  Record = apps.get_model("netbox_dns", "Record")
11
11
 
12
- inactive_ptr_records = Record.objects.filter(
12
+ inactive_ptr_records = Record.objects.exclude(
13
+ zone__status__in=ZONE_ACTIVE_STATUS_LIST,
14
+ ).filter(
13
15
  type=RecordTypeChoices.PTR,
14
16
  managed=True,
15
- ).exclude(
16
- zone__status__in=ZONE_ACTIVE_STATUS_LIST,
17
17
  )
18
18
 
19
19
  for record in inactive_ptr_records:
@@ -13,6 +13,7 @@ from netbox_dns.utilities import (
13
13
  get_ip_addresses_by_view,
14
14
  get_query_from_filter,
15
15
  update_dns_records,
16
+ validate_ip_address_filter,
16
17
  )
17
18
  from utilities.exceptions import AbortRequest
18
19
 
@@ -89,6 +90,13 @@ class View(ObjectModificationMixin, ContactsMixin, PrimaryModel):
89
90
  }
90
91
  )
91
92
 
93
+ if "ip_address_filter" in changed_fields and self.ip_address_filter:
94
+ # Reject the filter before it is expanded into a query
95
+ try:
96
+ validate_ip_address_filter(self.ip_address_filter)
97
+ except ValidationError as exc:
98
+ raise ValidationError({"ip_address_filter": exc.messages})
99
+
92
100
  if "ip_address_filter" in changed_fields and self.get_saved_value(
93
101
  "ip_address_filter"
94
102
  ):
@@ -2,7 +2,9 @@ import re
2
2
  from collections import defaultdict
3
3
 
4
4
  from django.conf import settings
5
+ from django.core.exceptions import FieldDoesNotExist, ValidationError
5
6
  from django.db.models import Q
7
+ from django.utils.translation import gettext_lazy as _
6
8
  from dns import name as dns_name
7
9
  from netaddr import IPNetwork
8
10
 
@@ -24,6 +26,7 @@ __all__ = (
24
26
  "get_ip_addresses_by_zone",
25
27
  "check_record_permission",
26
28
  "get_query_from_filter",
29
+ "validate_ip_address_filter",
27
30
  "check_filter",
28
31
  "get_cidr_address",
29
32
  )
@@ -349,7 +352,56 @@ def check_record_permission(add=True, change=True, delete=True):
349
352
  )
350
353
 
351
354
 
355
+ RELATION_TERMINAL_LOOKUPS = frozenset({"pk", "id", "in", "isnull", "exact"})
356
+
357
+
358
+ def _validate_filter_key(key):
359
+ parts = key.split("__")
360
+ for index, part in enumerate(parts):
361
+ try:
362
+ field = IPAddress._meta.get_field(part)
363
+ except FieldDoesNotExist:
364
+ if index == 0:
365
+ raise ValidationError(
366
+ _("Unknown field {field} in filter key {key}").format(
367
+ field=part, key=key
368
+ )
369
+ )
370
+ return
371
+
372
+ if field.is_relation:
373
+ remainder = parts[index + 1 :]
374
+ if remainder and remainder[0] not in RELATION_TERMINAL_LOOKUPS:
375
+ raise ValidationError(
376
+ _("Filter key {key} may not cross the relation {field}").format(
377
+ key=key, field=part
378
+ )
379
+ )
380
+ return
381
+
382
+ return
383
+
384
+
385
+ def validate_ip_address_filter(ip_address_filter):
386
+ if not isinstance(ip_address_filter, list):
387
+ ip_address_filter = [ip_address_filter]
388
+
389
+ for condition in ip_address_filter:
390
+ if not condition:
391
+ continue
392
+ if not isinstance(condition, dict):
393
+ raise ValidationError(
394
+ _("Filter condition must be an object, not {type}").format(
395
+ type=type(condition).__name__
396
+ )
397
+ )
398
+ for key in condition:
399
+ _validate_filter_key(key)
400
+
401
+
352
402
  def get_query_from_filter(ip_address_filter):
403
+ validate_ip_address_filter(ip_address_filter)
404
+
353
405
  query = Q()
354
406
 
355
407
  if not isinstance(ip_address_filter, list):
@@ -83,6 +83,9 @@ def validate_record_value(record):
83
83
  ).format(value=record.value, type=record.type, error=exc)
84
84
  )
85
85
 
86
+ if record.type not in (RecordTypeChoices.TXT, RecordTypeChoices.SPF):
87
+ record.value = rr.to_text()
88
+
86
89
  skip_name_validation = record.type in get_plugin_config(
87
90
  "netbox_dns", "tolerate_non_rfc1035_types", default=[]
88
91
  )
@@ -97,7 +97,7 @@ class NameServerZoneListView(generic.ObjectChildrenView):
97
97
  )
98
98
 
99
99
  def get_children(self, request, parent):
100
- return parent.zones
100
+ return parent.zones.restrict(request.user, "view")
101
101
 
102
102
 
103
103
  @register_model_view(NameServer, "soa_zones")
@@ -117,4 +117,4 @@ class NameServerSOAZoneListView(generic.ObjectChildrenView):
117
117
  )
118
118
 
119
119
  def get_children(self, request, parent):
120
- return parent.soa_zones
120
+ return parent.soa_zones.restrict(request.user, "view")
@@ -95,4 +95,4 @@ class RegistrationContactZoneListView(generic.ObjectChildrenView):
95
95
  | Q(admin_c=parent)
96
96
  | Q(tech_c=parent)
97
97
  | Q(billing_c=parent)
98
- )
98
+ ).restrict(request.user, "view")
@@ -108,4 +108,4 @@ class ViewZoneListView(generic.ObjectChildrenView):
108
108
  )
109
109
 
110
110
  def get_children(self, request, parent):
111
- return parent.zones
111
+ return parent.zones.restrict(request.user, "view")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: netbox-plugin-dns
3
- Version: 1.7.2
3
+ Version: 1.7.3
4
4
  Summary: NetBox DNS is a NetBox plugin for managing DNS data.
5
5
  Author-email: Peter Eckel <pe@sys4.de>
6
6
  Project-URL: Homepage, https://github.com/sys4/netbox-plugin-dns
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "netbox-plugin-dns"
3
- version = "1.7.2"
3
+ version = "1.7.3"
4
4
  description = "NetBox DNS is a NetBox plugin for managing DNS data."
5
5
  authors = [
6
6
  {name="Peter Eckel", email="pe@sys4.de"},