Save segunda brancha as backup
This commit is contained in:
@@ -1,3 +1,31 @@
|
||||
from django.shortcuts import render
|
||||
from django.views.generic.list import ListView
|
||||
from django.views.generic.detail import DetailView
|
||||
|
||||
# Create your views here.
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.permissions import IsAuthenticated
|
||||
from rest_framework import status, permissions
|
||||
|
||||
from .models import sistemas_por_cliente
|
||||
|
||||
|
||||
class SistemasXCliente_ListView(ListView):
|
||||
model = sistemas_por_cliente
|
||||
paginate_by = 5
|
||||
template_name = 'Sistemas/Xclientes/lista.html'
|
||||
|
||||
class SistemasXCliente_DetailView(DetailView):
|
||||
model = sistemas_por_cliente
|
||||
template_name= 'Sistemas/Xclientes/detail.html'
|
||||
|
||||
#registrar Equipo
|
||||
class Registrar_PC(APIView):
|
||||
permissions_classes = (permissions.AllowAny,)
|
||||
|
||||
def post(self,request, format=None):
|
||||
data = request.data
|
||||
return Response(data)
|
||||
|
||||
def get(self,request):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user