Ejemplo n.º 1
0
def delete_blob_by_id(request, id):
    return delete_instance(request=request,
                           model=Blob,
                           lookup_field='id',
                           lookup_value=id)
Ejemplo n.º 2
0
def delete_post_by_id(request, id):
    return delete_instance(request=request,
                           model=Post,
                           lookup_field='id',
                           lookup_value=id)
Ejemplo n.º 3
0
def delete_blob_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Blob,
                           lookup_field='slug',
                           lookup_value=slug)
Ejemplo n.º 4
0
def delete_post_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Post,
                           lookup_field='slug',
                           lookup_value=slug)
Ejemplo n.º 5
0
def delete_tag_by_id(request, id):
    return delete_instance(request=request,
                           model=Tag,
                           lookup_field='id',
                           lookup_value=id)
Ejemplo n.º 6
0
def delete_tag_by_slug(request, slug):
    return delete_instance(request=request,
                           model=Tag,
                           lookup_field='slug',
                           lookup_value=slug)
Ejemplo n.º 7
0
def delete_image_by_id(request, id):
    return delete_instance(request=request,
                           model=Image,
                           lookup_field='id',
                           lookup_value=id)
Ejemplo n.º 8
0
def delete_image_by_slug(request, uuid):
    return delete_instance(request=request,
                           model=Image,
                           lookup_field='uuid',
                           lookup_value=uuid)