-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ralph2 vs Ralph3 cross validator #2491
Conversation
6c6d41b
to
de0872f
Compare
|
||
|
||
def main(): | ||
if 'cross_validator' not in os.environ.get('DJANGO_SETTINGS_MODULE', ''): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes - it is correct (but not perfect). the idea here is to enable local settings easily (ex. ralph.cross_validator.settings_local).
MVP of data validator between ralph2 and ralph3. Currently it supports AssetModel and DataCenterAsset (partialy).
de0872f
to
8e5b5e7
Compare
return format_html('-') | ||
html = '' | ||
for item, values in obj.diff.items(): | ||
print(item, values) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove print
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://flake8.pycqa.org/en/latest/extensions.html#existing-extensions
maybe we should use anh of them, especially flake8-print?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xliiv #2492
🆗 |
🆗 |
MVP of data validator between ralph2 and ralph3. Currently it supports AssetModel and DataCenterAsset (partialy).