Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/t/a/taverna-HEAD/forum/views.py   taverna(Download)
 
from models import *
from util import rr, modify_rating, invalidate_cache
from django import forms
from django.conf import settings
def auto_remove(startpost, reason):
    invalidate_cache(startpost)
    if startpost.reply_to == None:
        for post in Post.objects.filter(thread=startpost.pk):
            if reason.cost == 0:

src/t/a/taverna-HEAD/forum/models.py   taverna(Download)
    def save(self):
        from util import invalidate_cache
        super(Post, self).save()
        invalidate_cache(self)