added bsaic viewset classes
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
from rest_framework import viewsets
|
||||
from companies.models import Company
|
||||
from companies.serializers import CompanySerializer
|
||||
|
||||
|
||||
class CompanyViewSet(viewsets.ModelViewSet):
|
||||
queryset = Company.objects.all()
|
||||
serializer_class = CompanySerializer
|
||||
|
||||
Reference in New Issue
Block a user