-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#from django.shortcuts import render | ||
|
||
from rest_framework import generics | ||
from .serializers import BucketlistSerializer | ||
from .models import Bucketlist | ||
|
||
# Create your views here. | ||
Class CreateView(generics.ListCreateAPIView): | ||
class CreateView(generics.ListCreateAPIView): | ||
"""This class defines the create behavior of our rest api.""" | ||
queryset = Bucketlist.objects.all() | ||
serializer_class = BucketlistSerializer | ||
|
||
def perform_create(self, serializers): | ||
def perform_create(self, serializer): | ||
"""Save the post data when creating a new bucketlist.""" | ||
serializer.save() |
Binary file modified
BIN
+47 Bytes
(100%)
medicine_reminder/medicine_reminder/__pycache__/urls.cpython-36.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters