Commits

George Notaras  committed b908328

Added note about why signals are used to manipulate Record fields during saving instead of overriding the save() method of the model.

  • Participants
  • Parent commits 60dbf79

Comments (0)

Files changed (1)

File src/powerdns_manager/models.py

         #return '%s %s' % (self.type, self.name)
         return self.name
 
+# Signals are always executed in bulk operations, so they are preferred.
+
 # Set the ``name`` field on SOA records.
 signals.pre_save.connect(signal_cb.set_soa_rr_name, sender=Record)
 # Update ``change_date``