-
Notifications
You must be signed in to change notification settings - Fork 79
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
Finish audit fields for users
table
#1129
Merged
Merged
Changes from 48 commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
c2be7e2
Update database.py
michplunkett 9ab33f5
Create 2024-10-09-1859_0a7c591e13b9_add_remaining_audit_fields_to_use…
michplunkett ef4fc79
Update 2024-10-09-1859_0a7c591e13b9_add_remaining_audit_fields_to_use…
michplunkett d0b34fc
Delete 2024-10-09-1859_0a7c591e13b9_add_remaining_audit_fields_to_use…
michplunkett 9dcb384
Update database.py
michplunkett a098944
Create 2024-10-09-1927_bf254c0961ca_add_remaining_audit_fields_for_us…
michplunkett 70f883f
Update database.py
michplunkett 8e065c4
Update 2024-10-09-1927_bf254c0961ca_add_remaining_audit_fields_for_us…
michplunkett 37472ce
Update database.py
michplunkett 0e0e2f7
Create 2024-10-09-2000_99c50fc8d294_complete_audit_field_addition_to_…
michplunkett 5de0e19
Update 2024-10-09-2000_99c50fc8d294_complete_audit_field_addition_to_…
michplunkett 171b657
Update database.py
michplunkett 930c5f3
Update views.py
michplunkett 450e715
Update users.html
michplunkett a4af572
Update test_user_api.py
michplunkett 46fd1e4
Update test_user_api.py
michplunkett 4842a18
Update users.html
michplunkett be8caa5
Update test_models.py
michplunkett 102f222
Blep
michplunkett 04c4906
Update conftest.py
michplunkett 464d65d
Disabling
michplunkett ceda267
Update test_auth.py
michplunkett faf125f
Update test_user_api.py
michplunkett 3cd4bc9
Update test_auth.py
michplunkett c03bb4a
Update test_user_api.py
michplunkett 0d7669d
Update sort.html
michplunkett acf6575
Update views.py
michplunkett 486c418
Update views.py
michplunkett 837849d
Update test_user_api.py
michplunkett 48fbab5
Update views.py
michplunkett 851d9d7
Update test_user_api.py
michplunkett 8ea8a46
Update views.py
michplunkett 08d65a9
Update test_user_api.py
michplunkett b446385
Update database.py
michplunkett 7bff35f
Update views.py
michplunkett e77393d
Update test_user_api.py
michplunkett 0d7dbc1
Update users.html
michplunkett 3393a51
Add KEY_APPROVE_REGISTRATIONS
michplunkett f022e77
Update views.py
michplunkett 4f0c6c1
Update views.py
michplunkett 9800ebd
Update views.py
michplunkett d05da42
Update views.py
michplunkett 4588b10
Update views.py
michplunkett 42f7d27
Update views.py
michplunkett c9ad779
Update views.py
michplunkett 83263fe
Update views.py
michplunkett fc20b27
Update views.py
michplunkett 709b8b0
Update test_models.py
michplunkett dadd0b1
Merge branch 'develop' into finish-audit-fields-users
michplunkett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
{% block content %} | ||
<div class="container theme-showcase py-5" role="main"> | ||
{% if current_user and current_user.is_authenticated %} | ||
{% if image and not current_user.is_disabled %} | ||
{% if image and not current_user.disabled_at and not current_user_disabled_by %} | ||
<div class="row"> | ||
<div class="text-center"> | ||
<h1> | ||
|
@@ -160,7 +160,7 @@ <h2> | |
</div> | ||
</div> | ||
</div> | ||
{% elif current_user.is_disabled %} | ||
{% elif current_user.disabled_at and current_user.disabled_by %} | ||
<h3>Your account has been disabled due to too many incorrect classifications/tags!</h3> | ||
<p> | ||
<a href="mailto:[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
{% block content %} | ||
<div class="container theme-showcase py-5" role="main"> | ||
{% if current_user and current_user.is_authenticated %} | ||
{% if image and current_user.is_disabled == False %} | ||
{% if image and not current_user.disabled_at and not current_user.disabled_by %} | ||
<div class="row"> | ||
<div class="text-center"> | ||
<h1> | ||
|
@@ -70,7 +70,7 @@ <h1> | |
<img class="img-responsive" src="{{ path }}" alt="Picture to be sorted"> | ||
</div> | ||
</div> | ||
{% elif current_user.is_disabled == True %} | ||
{% elif current_user.disabled_at and current_user.disabled_by %} | ||
<h3>Your account has been disabled due to too many incorrect classifications/tags!</h3> | ||
<p> | ||
<a href="mailto:[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Added this as a constant because it was being used throughout the tests.