a guest Apr 9th, 2019 2 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # views.py
- from django.shortcuts import render, get_object_or_404
- from django.views.generic.edit import CreateView
- from .models import Casa, CasaImage
- from .mixins import StaffMixin
- class CreaCasa(CreateView):
- model = Casa
- fields = '__all__'
- template_name = "inserzioni/crea_casa.html"
- success_url = "/"
RAW Paste Data