1
내가 이번에는 내가, 내가 전에이 일을 한 항목의 "뷰의 수를"보여 질수 이유를 잘 모릅니다하지만이 프로젝트에 내가장고 증가 전망 + 1
def getAuto(request,marca,slug,id):
from django.db.models import F
object = get_object_or_404(Robado,marca__slug=marca,modelo__slug=slug,pk=id,publico=True)
object.views= F('views')+1
object.save()
template.html
을 캔트views: {{object.views}}
template.html는 보여주고있다 :
이(+: (DEFAULT:), 1)
내가 상상하지 못할 이유
고마워요