1
 

More like this

Comments

zodiac2832 (on March 22, 2011):
def save(self):
    if self.active:
            self.__class__.objects.filter(active=True).update(active=False)
        super(self.__class__, self).save()
  • Kevin Postal (kevindpostal@gmail.com)

#

(Forgotten your password?)