Esempio n. 1
0
def history_item_delete(request, history_item_id):
    web = webs.history_item_web()
    web.initial_object = None

    history_item = get_object_or_404(models.history_item, pk=history_item_id)
    return web.object_delete(request, history_item)
Esempio n. 2
0
def history_item_add(request, type_id, object_id):
    object = get_object_by_string(type_id,object_id)

    web = webs.history_item_web()
    web.initial_object = object
    return web.object_add(request, kwargs={ 'object': object })