SHARE
TWEET

Untitled

a guest Apr 9th, 2019 2 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # views.py
  2.  
  3. from django.shortcuts import render, get_object_or_404
  4. from django.views.generic.edit import CreateView
  5. from .models import Casa, CasaImage
  6. from .mixins import StaffMixin
  7.  
  8.  
  9.  
  10. class CreaCasa(CreateView):
  11.     model = Casa
  12.     fields = '__all__'
  13.     template_name = "inserzioni/crea_casa.html"
  14.     success_url = "/"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top