Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRF==3.6.4, added explicit fields for some ModelSerializers - fixes #397 #399

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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