Пример #1
0
def delete_blob_by_id(request, id):
    return delete_instance(request=request,
                           model=Blob,
                           lookup_field='id',
                           lookup_value=id)
Пример #2
0
def delete_post_by_id(request, id):
    return delete_instance(request=request,
                           model=Post,
                           lookup_field='id',
                           lookup_value=id)
Пример #3
0
def delete_blob_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Blob,
                           lookup_field='slug',
                           lookup_value=slug)
Пример #4
0
def delete_post_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Post,
                           lookup_field='slug',
                           lookup_value=slug)
Пример #5
0
def delete_tag_by_id(request, id):
    return delete_instance(request=request,
                           model=Tag,
                           lookup_field='id',
                           lookup_value=id)
Пример #6
0
def delete_tag_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Tag,
                           lookup_field='slug',
                           lookup_value=slug)
Пример #7
0
def delete_image_by_id(request, id):
    return delete_instance(request=request,
                           model=Image,
                           lookup_field='id',
                           lookup_value=id)
Пример #8
0
def delete_image_by_slug(request, uuid):
    return delete_instance(request=request,
                           model=Image,
                           lookup_field='uuid',
                           lookup_value=uuid)