mirror of
https://github.com/Superredstone/patrickcanal.it.git
synced 2026-09-28 21:27:53 +02:00
chore: fix pre-commit hook
This commit is contained in:
+10
-3
@@ -1,10 +1,17 @@
|
||||
from django.views.generic import TemplateView
|
||||
from django.views.generic import ListView, TemplateView
|
||||
|
||||
from portfolio import models
|
||||
|
||||
|
||||
class IndexView(TemplateView):
|
||||
class PortfolioView(TemplateView):
|
||||
template_name = "index.html"
|
||||
|
||||
def get_context_data(self, **kwargs):
|
||||
return {"job_experiences": models.JobExperience.objects.all().order_by("-start")}
|
||||
return {
|
||||
"job_experiences": models.JobExperience.objects.all().order_by("-start")
|
||||
}
|
||||
|
||||
|
||||
class ProjectList(ListView):
|
||||
template_name = "project_list.html"
|
||||
model = models.Project
|
||||
|
||||
Reference in New Issue
Block a user