1. George Notaras
  2. django-powerdns-manager


George Notaras  committed 020f39c

Renamed signal callback that fills the missing TTL information to ``set_missing_rr_ttl``.

  • Participants
  • Parent commits 50449ed
  • Branches default

Comments (0)

Files changed (2)

File src/powerdns_manager/models.py

View file
  • Ignore whitespace
 # Update ``change_date``
 signals.pre_save.connect(signal_cb.update_rr_change_date, sender=Record)
 # Set missing TTL information
-signals.pre_save.connect(signal_cb.set_missing_ttl, sender=Record)
+signals.pre_save.connect(signal_cb.set_missing_rr_ttl, sender=Record)

File src/powerdns_manager/signal_cb.py

View file
  • Ignore whitespace
     instance.change_date = int(time.time())
-def set_missing_ttl(sender, **kwargs):
+def set_missing_rr_ttl(sender, **kwargs):
     instance = kwargs['instance']   # powerdns_manager.Record instance
     instance.ttl = settings.PDNS_DEFAULT_RR_TTL
     # TODO: consider checking the minimum TTL from the SOA record.