Commit 66ca619d authored by Alice's avatar Alice

Add iframe serialize link.

parent 6fa0bd61
......@@ -166,13 +166,16 @@ class Resource (Model):
nested_fields=["format", "conversations", "steps", "language", "fields",\
"type", "submitter", "related", "likes", "review"]
serializer_fields=["@id", "name", "description", "skills", "author", "target", "uri", "publication_year", "format",\
<<<<<<< Updated upstream
"conversations", "steps", "language", "fields",\
"conversations", "steps", "language", "fields", "country",\
>>>>>>> Stashed changes
"type", "submitter", "related", "likes", "review", "sharing", "preview_image", "iframe_link"]
container_path = 'resources/'
rdf_type = 'coopstarter:resource'
anonymous_perms = ['view']
authenticated_perms = ['inherit', 'add']
rdf_context = {'preview_image': 'foaf:depiction'}
def dehydrate_country(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment