Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
4c3c8a69
Commit
4c3c8a69
authored
Aug 24, 2019
by
Andrey Vertiprahov
Browse files
Fix on_init attribute on administrative_domain model.
parent
ca82a4e9
Pipeline
#15542
passed with stages
in 15 minutes and 12 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
core/datastream/decorator.py
View file @
4c3c8a69
...
...
@@ -47,7 +47,7 @@ def _on_model_change(sender, instance, *args, **kwargs):
instance
,
changed_fields
=
set
(
f_name
for
f_name
in
instance
.
initial_data
for
f_name
in
getattr
(
instance
,
"
initial_data
"
,
[])
if
instance
.
initial_data
[
f_name
]
!=
getattr
(
instance
,
f_name
)
),
)
...
...
sa/models/administrativedomain.py
View file @
4c3c8a69
...
...
@@ -22,7 +22,7 @@ from noc.core.model.base import NOCModel
from
noc.main.models.pool
import
Pool
from
noc.main.models.remotesystem
import
RemoteSystem
from
noc.core.model.fields
import
TagsField
,
DocumentReferenceField
from
noc.core.model.decorator
import
on_delete_check
from
noc.core.model.decorator
import
on_delete_check
,
on_init
from
noc.core.bi.decorator
import
bi_sync
from
noc.core.datastream.decorator
import
datastream
...
...
@@ -30,6 +30,7 @@ id_lock = Lock()
_path_cache
=
cachetools
.
TTLCache
(
maxsize
=
1000
,
ttl
=
60
)
@
on_init
@
bi_sync
@
datastream
@
on_delete_check
(
...
...
Dmitry Volodin
@dv
mentioned in commit
b4b1289b
·
Sep 01, 2019
mentioned in commit
b4b1289b
mentioned in commit b4b1289b665a74c477d27033b1d9a0b194636b1d
Toggle commit list
Andrey Vertiprahov
@aversant
mentioned in merge request
!2554 (merged)
·
Sep 01, 2019
mentioned in merge request
!2554 (merged)
mentioned in merge request !2554
Toggle commit list
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