Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
d6c09c5b
Commit
d6c09c5b
authored
Feb 28, 2018
by
Lukas Burgey
Browse files
Change attribute name
parent
dd386be8
Changes
1
Hide whitespace changes
Inline
Side-by-side
django_backend/backend/models.py
View file @
d6c09c5b
...
...
@@ -37,8 +37,8 @@ class RabbitMQInstance(models.Model):
max_length
=
150
,
default
=
'guest'
,
)
enabled
=
models
.
BooleanField
(
default
=
Fals
e
,
is_active
=
models
.
BooleanField
(
default
=
Tru
e
,
)
def
__str__
(
self
):
...
...
@@ -232,7 +232,7 @@ class RabbitMQInstance(models.Model):
def
rabbitmq_instance
():
return
RabbitMQInstance
.
objects
.
get
(
enabled
=
True
)
return
RabbitMQInstance
.
objects
.
get
(
is_active
=
True
)
class
User
(
AbstractUser
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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