from cover.models import Image
from cover import forms
-
PREVIEW_SIZE = (216, 300)
@active_tab('cover')
def image_list(request):
- objects = Image.objects.all()
- enable_add = request.user.has_perm('cover.add_image')
return render(request, "cover/image_list.html", {
'object_list': Image.objects.all(),
'can_add': request.user.has_perm('cover.add_image'),