|
Added backend work for the archive profile setting
|
30cd3e40f35bf86e5fff334e205b4a9d7c395a32 |
Daniel |
|
Changed publish_and_archive to bee a regular BooleanField.
|
f5642d198399b493640a0be29f41c3c60e372bca |
Daniel |
|
Added test to test_account_settings_form for previous changes.
|
a75b7f76d0770663b0917cd54619ff2e4c78ce6d |
Daniel |
|
Slight change to single test
|
86eafb7560527799c4d0c5bb4c3ee233ff9ae13c |
Daniel |
|
removed trailing white space
|
bdaeedea3b36037dd2393783dde199c643a3fd12 |
Daniel |
|
Fixing issues highlighted in review.
|
719420e92218e671ce1439a2c5e15ea4c35acb33 |
Daniel |
|
Removed whitespace
|
58b864eb6e433f433210aea8c9fb7358ebc55750 |
Daniel |
|
Changed publish_and_archive to be property and not BooleanField to not be add...
|
a8f699817a20db342ba4f06e66187efa2deb535d |
Daniel |
|
Fixed indentation
|
9a4e5a39cffa34d42733fde47471c07da8b9f6ea |
Daniel |
|
Rearanged Imports
|
0bb80089745beb1fe1765b96099976d636b06f3d |
Daniel |
|
Small changes for review request
|
e855ea81bcd4ebfeac8572d8023a881b5efc4399 |
Daniel |
|
Added more comments.
|
0307ff863048c7b1e59fcfc52ece05eb0d17d575 |
Daniel |
|
Added super().setup()
|
72786f2862a5c144400201a53ff676db0062265c |
Daniel |
|
Backend for a user setting for Archive Review Request behavior when publishing.
This change introduce a new user setting called `publish_and_archive`, which is
add to each user account and model. It also adds a new `BooleanField` option to
the profile settings page to enable this feature.
|
92b7a9b08194663313e84ec938a6dd3b22154e86 |
Daniel |
|
Replace `publish_and_archive` `BooleanField` to not alter database.
Any additional `BooleanFields` in `models.py` automatically add that field to
the database, which we want to avoid. Instead, a new `@property`, similar to
`ui_theme_id`, is now used to handle `publish_and_archive`.
|
d1c2d90d9612899f82a109c92a2f6f26d2128b53 |
Daniel |
|
Updated AccountSettingsForm unit tests to account for `publish_and_archive`.
Introduced a new suite of unit tests for each feature added to the model.
These serve to check that they are initialized, saved, and loaded properly.
Tests to check for invalid or missing data were also included. Currently,
`timezone` is the only required feature that can also be invalid.
|
4a698faf4da5f514c3a5d527e4990d5cc4ce9e20 |
Daniel |