Skip to content

Commit

Permalink
Add description to content_objects
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Houseknecht committed Jun 5, 2018
1 parent 2e7c730 commit 1678a73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions galaxy/api/serializers/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def get_summary_fields(self, instance):
latest_import['created'] = import_tasks[0].created
latest_import['modified'] = import_tasks[0].modified

content_objects = [{'id': c.id, 'name': c.name, 'content_type': c.content_type.name}
for c in instance.content_objects.all()]
content_objects = [{'id': c.id, 'name': c.name, 'content_type': c.content_type.name,
'description': c.description} for c in instance.content_objects.all()]

content_counts = {c['content_type__name']: c['count'] for c in instance.content_counts}

Expand Down
1 change: 0 additions & 1 deletion galaxy/api/views/provider_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def get(self, request, *args, **kwargs):
'id': provider.pk,
'name': provider.name.lower()
}
print(source['name'])
try:
provider_namespace = ProviderNamespace.objects.get(provider=provider,
name__iexact=source['name'])
Expand Down

0 comments on commit 1678a73

Please sign in to comment.