I am trying to define a \"before_save\" method in certain classes in my django 1.2 project. I\'m having trouble connecting the signal to the class method in models.py.
Rather than use a method on MyClass, you should just use a function. Something like:
def before_save(sender, instance, *args, **kwargs): instance.test_field = "It worked" pre_save.connect(before_save, sender=MyClass)