Skip to content

Commit

Permalink
its working
Browse files Browse the repository at this point in the history
  • Loading branch information
ameek committed Aug 2, 2018
1 parent dc9245e commit 7cea67d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions medicine_reminder/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@

class BucketlistSerializer(serializers.ModelSerializer):
"""Serializer to map the Model instance into JSON format."""

class Meta:
"""this meta clss will map serializer's feilds with the model feilds"""
"""Meta class to map serializer's fields with the model fields."""
model = Bucketlist
feilds = ('id','name','date_created','date_modified')
read_only_feilds = ('date_created', 'date_modified')
fields = ('id', 'name', 'date_created', 'date_modified')
read_only_fields = ('date_created', 'date_modified')
Binary file modified medicine_reminder/db.sqlite3
Binary file not shown.

0 comments on commit 7cea67d

Please sign in to comment.