Skip to content

Commit

Permalink
Merge pull request #713 from kobotoolbox/kc2.0-punch-list
Browse files Browse the repository at this point in the history
Python3 and Django2.2 upgrade punch list items
  • Loading branch information
noliveleger authored May 19, 2021
2 parents e3e5124 + d09166b commit 67cdfa5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion onadata/apps/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def __init__(self, *args, **kwargs):
# Dynamically generated routes.
# Generated using @action or @link decorators on methods of the viewset

# FIXME find out with what value `detail` should be set
self.lookups_routes.append(routers.Route(
url=[
r'^{prefix}/{lookups}/{methodname}{trailing_slash}$',
Expand Down
3 changes: 1 addition & 2 deletions onadata/apps/main/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ def profile(request, username):
"/%s" % request.user.username)
url = request_url.replace('http://', 'https://')
xforms = XForm.objects.filter(user=content_user)\
.select_related('user')\
.prefetch_related('instances')
.select_related('user', 'instances')

user_xforms = xforms
# forms shared with user
Expand Down
2 changes: 0 additions & 2 deletions onadata/libs/serializers/note_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

class NoteSerializer(serializers.ModelSerializer):

# ToDo Verify why calling this here?
serializers.ModelSerializer()
instance = serializers.PrimaryKeyRelatedField(queryset=Instance.objects.all())

class Meta:
Expand Down

0 comments on commit 67cdfa5

Please sign in to comment.