Skip to content

Commit

Permalink
DRF==3.6.4, added explicit fields for some ModelSerializers - fixes #397
Browse files Browse the repository at this point in the history
  • Loading branch information
jeverling committed Dec 5, 2017
1 parent ceb11c5 commit abcb521
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion onadata/libs/serializers/metadata_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class MetaDataSerializer(serializers.HyperlinkedModelSerializer):

class Meta:
model = MetaData
fields = '__all__'

# was previously validate_data_value but the signature change in DRF3.
def validate(self, attrs):
Expand Down Expand Up @@ -61,4 +62,3 @@ def create(self, validated_data):
data_file=data_file,
data_file_type=data_file_type
)

1 change: 1 addition & 0 deletions onadata/libs/serializers/note_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class NoteSerializer(serializers.ModelSerializer):

class Meta:
model = Note
fields = '__all__'

def save(self, user=None):
# This used to be in note_viewset
Expand Down
6 changes: 3 additions & 3 deletions requirements/base.pip
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ path.py==8.1.2
dict2xml==1.3

# api support
djangorestframework==3.3.2
djangorestframework-csv==1.4.1
djangorestframework==3.6.4
djangorestframework-csv==2.0.0
djangorestframework-jsonp==1.0.2
djangorestframework-xml==1.3.0

# cors
django-cors-headers==0.13
Markdown==2.5
django-filter==0.7
django-filter==1.1.0

# captcha
recaptcha-client==1.0.6
Expand Down

0 comments on commit abcb521

Please sign in to comment.