powerdns-admin/powerdnsadmin/models
corubba f0e32a035d Fix deletion of comments
The compaitibility for backends that don't support comments broke the
normal deletion of comments. This is fixed by limiting the
compaitibility to when we don't know for certain whether the backend of
that zone supports comments or not. This is done by checking if the
zone currently contains any comments: If it does, the backend definitly
supports comment; if it doesn't, we don't know and have to assume it
doesn't. The check is done by the "modified_at" attribute, because this
only exists on persistent comments from pdns and not on the "fill-up"
comments that PDA adds.
Luckily this also works perfectly for the deletion case, because to
delete a comment it had to already exist previously.

Fixes #1516
2023-04-16 16:03:44 +02:00
..
__init__.py feat: Associate an API Key with accounts (#1044) 2021-12-03 14:12:11 +00:00
account_user.py Code refactoring and bug fixes 2020-06-19 08:47:51 +07:00
account.py feat: Move the account parse calls to a method 2022-06-18 14:30:56 +02:00
api_key_account.py feat: Associate an API Key with accounts (#1044) 2021-12-03 14:12:11 +00:00
api_key.py Update api_key.py 2022-12-09 09:33:17 +08:00
base.py Refactoring the code 2019-12-02 10:32:03 +07:00
domain_setting.py Code refactoring and bug fixes 2020-06-19 08:47:51 +07:00
domain_template_record.py Change domain(s) to zone(s) in the python code and docs 2023-03-16 17:02:23 +01:00
domain_template.py Change domain(s) to zone(s) in the python code and docs 2023-03-16 17:02:23 +01:00
domain_user.py Code refactoring and bug fixes 2020-06-19 08:47:51 +07:00
domain.py Change domain(s) to zone(s) in the python code and docs 2023-03-16 17:02:23 +01:00
history.py History Tab Overhaul & Domain Record Modifications Changelog (#1042) 2021-11-30 11:02:37 +02:00
record_entry.py Code refactoring and bug fixes 2020-06-19 08:47:51 +07:00
record.py Fix deletion of comments 2023-04-16 16:03:44 +02:00
role.py Fix back_populate relationships 2022-12-22 22:50:01 +01:00
server.py Code refactoring and bug fixes 2020-06-19 08:47:51 +07:00
setting.py Corrected issue with encoding / decoding of dictionary and list type settings values. 2023-04-14 18:52:27 -04:00
user.py fix: allow the specification of any combination of groups in LDAP group security configuration 2023-03-18 20:30:52 +00:00