Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
092fffcf
authored
Sep 12, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: remove unecessary 'if' from get_default_datastore method
parent
d82f4c8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
circle/storage/models.py
+1
-3
No files found.
circle/storage/models.py
View file @
092fffcf
...
...
@@ -113,9 +113,7 @@ class DataStore(Model):
@classmethod
def
get_default_datastore
(
cls
):
datastore_name
=
settings
.
DEFAULT_DATASTORE
if
datastore_name
:
return
cls
.
objects
.
get
(
name
=
datastore_name
)
return
cls
.
objects
.
get
(
name
=
settings
.
DEFAULT_DATASTORE
)
class
Disk
(
TimeStampedModel
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment