2
有什麼辦法來訪問會話變量,同時覆蓋所有機型保存方法的Django:訪問會話變量,而覆蓋模型的保存方法
class Blog(models.Model):
name = models.CharField(max_length=100)
tagline = models.TextField()
def save(self, *args, **kwargs):
//Code for accessing session variable
super(Blog, self).save(*args, **kwargs)
感謝,