def before_save(sender, instance, *args, **kwargs): instance.test_field = "It worked"pre_save.connect(before_save, sender=MyClass)
欢迎分享,转载请注明来源:内存溢出
def before_save(sender, instance, *args, **kwargs): instance.test_field = "It worked"pre_save.connect(before_save, sender=MyClass)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)