Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/m/a/manabi-HEAD/apps/flashcards/views/api/__init__.py   manabi(Download)
        # if this fact is a shared fact which the current subscribing user 
        # hasn't copied yet, copy it first
        fact = Fact.objects.get_for_owner_or_subscriber(fact_id, request.user)
 
        #fact_form = FactForm(post_data, prefix='fact', instance=fact)
            })
    elif request.method == 'DELETE':
        fact = Fact.objects.get_for_owner_or_subscriber(fact_id, request.user)
        deleted_fact = fact.delete_for_user(request.user)
        fact_deleted.send(deleted_fact)

src/m/a/manabi-HEAD/apps/flashcards/views/crud.py   manabi(Download)
def fact_update(request, fact_id):
    if request.method == 'GET':
        # if this is a subscribed fact that the subscriber hasn't copied yet, copy the fact (without its field contents) first
        fact = Fact.objects.get_for_owner_or_subscriber(fact_id, request.user)
        fact.edit_string_for_tags = usertagging.utils.edit_string_for_tags(fact.tags)