Commit 439d8929 authored by Administrator's avatar Administrator

[BUGFIX] adding resource bugged without this change. Mat could you have a look to this ?

parent 5bfa56b8
......@@ -93,9 +93,10 @@ class Node(CTENode):
def add_resource(self, **kwargs):
# only for tests
# resource = Resource(guid=str(time()), digest=str(time()), **kwargs )
resource = Resource(guid=str(time()), digest=str(time()), **kwargs )
resource = Resource(**kwargs)
#resource = Resource(**kwargs)
resource.save()
# User
if 'user' not in kwargs and 'user_id' not in kwargs:
resource.user = self.user
......
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