Пример #1
0
def get_blob(request, slug):
    return get_instance(request=request,
                        model=Blob,
                        lookup_field='slug',
                        lookup_value=slug)
Пример #2
0
def get_tag(request, slug):
    return get_instance(request=request,
                        model=Tag,
                        lookup_field='slug',
                        lookup_value=slug)
Пример #3
0
def get_post(request, slug):
    return get_instance(request=request,
                        model=Post,
                        lookup_field='slug',
                        lookup_value=slug)
Пример #4
0
def get_image(request, uuid):
    return get_instance(request=request,
                        model=Image,
                        lookup_field='uuid',
                        lookup_value=uuid)