def log_save(sender, **kwargs): print kwargs action = "save" # if kwargs['created']: # action = "create" cl = CrudLog(model=sender, action=action) cl.save()
def log_delete(sender, **kwargs): cl = CrudLog(model=sender, action="delete") cl.save()