Пример #1
0
def edit_blob(request, slug):
    return edit_instance(request=request,
                         model=Blob,
                         lookup_field='slug',
                         lookup_value=slug)
Пример #2
0
def edit_tag(request, slug):
    return edit_instance(request=request,
                         model=Tag,
                         lookup_field='slug',
                         lookup_value=slug)
Пример #3
0
def edit_post(request, slug):
    return edit_instance(request=request,
                         model=Post,
                         lookup_field='slug',
                         lookup_value=slug)
Пример #4
0
def edit_image(request, uuid):
    return edit_instance(request=request,
                         model=Image,
                         lookup_field='uuid',
                         lookup_value=uuid)