diff --git a/README.md b/README.md index d0cf1a5a1cebd8e8b56ff12dc812bd6afcea2480..b5d9f64bb08b5feb96b7717f1376fc6348e0d934 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ REST API created using Django, Neo4j and Neomodel. -### Clone the repository +## Clone the repository ~~~ git clone https://git.embl.de/yelmoubayed/new-dp-service.git cd <repository> ~~~ -### Create a virtual environment to isolate the package dependencies locally +## Create a virtual environment to isolate the package dependencies locally ~~~ python3 -m venv env ~~~ @@ -17,17 +17,17 @@ source env/bin/activate #On Linux and MacOS env\Scripts\activate #On Windows ~~~ -### Install requirements +## Install requirements ~~~ pip install -r requirements.txt ~~~ -### To add new requirements if needed +## To add new requirements if needed ~~~ pip freeze > requirements.txt ~~~ -### Django common command lines +## Django common command lines #### Create constraintes ~~~ diff --git a/dataproc/api/models/__pycache__/construct_model.cpython-38.pyc b/dataproc/api/models/__pycache__/construct_model.cpython-38.pyc index 1a35d6ad81cae438470b4fb5ba44d84b17dbe47a..fd1129b42abca1dd1fcddc931d2e6694d81671c0 100644 Binary files a/dataproc/api/models/__pycache__/construct_model.cpython-38.pyc and b/dataproc/api/models/__pycache__/construct_model.cpython-38.pyc differ diff --git a/dataproc/api/models/construct_model.py b/dataproc/api/models/construct_model.py index ea5d60d74835a295f3ff0b215e0df4d0322ffa27..c8e9bed72998160ac67e7f1af81d7f953beda06a 100644 --- a/dataproc/api/models/construct_model.py +++ b/dataproc/api/models/construct_model.py @@ -1,4 +1,5 @@ from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdProperty, RelationshipTo +from uuid import uuid4 # from api.models.ocf_model import OCF # from api.models.storagehost_model import StorageHost @@ -7,7 +8,7 @@ from neomodel import StructuredNode, StringProperty, IntegerProperty,UniqueIdPro class Construct(StructuredNode): - uid=UniqueIdProperty() + uid=UniqueIdProperty(default=uuid4) name=StringProperty() # Relationships diff --git a/dataproc/api/views/__pycache__/construct_view.cpython-38.pyc b/dataproc/api/views/__pycache__/construct_view.cpython-38.pyc index b5b58a083bee054223f4dfd50b247248f99fde38..c24e15ba959a8420bb8150cc5e607ef7ab1007e1 100644 Binary files a/dataproc/api/views/__pycache__/construct_view.cpython-38.pyc and b/dataproc/api/views/__pycache__/construct_view.cpython-38.pyc differ