Beispiel #1
0
 def index_view_model(self):
     obj = BaseViewModel()
     obj.contacts = Contact.objects.all()
     return obj
 def index_view_model(self):
     obj = BaseViewModel()
     obj.contacts = Contact.objects.all()
     return obj
 def index_view_model(self):
     obj = BaseViewModel()
     obj.body_class = 'home'
     obj.images = Carousel.objects.all()
     return obj
 def about_view_model(self):
     obj = BaseViewModel()
     obj.body_class = 'about'
     obj.people = Person.objects.all()
     return obj
 def services_view_model(self):
     obj = BaseViewModel()
     obj.services = Service.objects.all()
     obj.body_class = 'services'
     return obj
 def contact_view_model(self):
     obj = BaseViewModel()
     obj.body_class = 'contact'
     return obj
 def portfolio_view_model(self):
     obj = BaseViewModel()
     obj.portfolio_items = Portfolio.objects.all()
     return obj