Roberto Rosario
4baeb6ce7e
Code cleanups
...
PEP8 cleanups. Add keyword arguments.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-21 00:56:22 -04:00
Roberto Rosario
17030472f1
Add migration code for the removal of UUID_FUNCTION
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-12 02:15:51 -04:00
Roberto Rosario
36a51eeb73
Switch to full app paths
...
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.
This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.
Every app reference is now prepended with 'mayan.apps'.
Existing config.yml files need to be updated manually.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-05 02:02:57 -04:00
Roberto Rosario
eda8d18146
Database access in data migrations defaults to the 'default' database. Force it to the user selected database instead.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-19 20:53:04 -04:00
Roberto Rosario
58f7b1b555
Add file_size and datetime fields to the DocumentPageCachedImage model.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-17 03:39:28 -04:00
Roberto Rosario
206dbb9b5b
The size of the document type label field has been increased from 32 to 96 characters.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-17 03:14:27 -04:00
Roberto Rosario
a372fc5a07
Improve model help texts. Add respective migrations.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-17 02:46:16 -04:00
Roberto Rosario
26b31da443
Add favorite documents per user. Adds new setting option DOCUMENTS_FAVORITE_COUNT.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-23 01:50:35 -04:00
Roberto Rosario
83ca7a7476
Add missing migrations.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-29 03:59:39 -04:00
Roberto Rosario
a1568be7a7
Add missing migrations.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 03:12:22 -04:00
Roberto Rosario
9e8cd4d3d7
Fix the migrations storage class name.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 02:48:39 -04:00
Roberto Rosario
271838888c
Update the old filebasedstorage imports in migrations to use Django's default file storage.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-03 02:37:37 -04:00
Roberto Rosario
b8ac9c7553
Don't mix bytes and text literals.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-29 02:15:00 -04:00
Roberto Rosario
a7eaf6b368
Finish the document parsing app.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-24 03:54:07 -04:00
Roberto Rosario
0eaf8cea79
Skip UUID migration on Oracle backends. GitHub issue #251 .
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-03 00:17:24 -04:00
Roberto Rosario
3d6a32c7b6
Add workaround for pycountry versions without the bibliographical key.
...
GitHub issue #250 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-02 23:58:52 -04:00
Roberto Rosario
ddee13ed66
Add missing migration.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-25 07:12:15 -04:00
Roberto Rosario
4096b8b882
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 20:30:46 -04:00
Roberto Rosario
d4e1a506ed
Add duplicated document scan support.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-06 02:56:35 -04:00
Roberto Rosario
55eedc153e
Convert document version checksum field from a text field to a char
...
field to be able to index across all db backends without problem.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 16:10:05 -04:00
Roberto Rosario
2ec939e595
Index the document checksum field for faster searches by checksum.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:44:16 -04:00
Roberto Rosario
4f889fc21d
Move the document language choice list from the model to the form.
...
Pycoutry upgrades or user changes to the language choice list won't
trigger a migration anymore. Closes GitLab issue #328 .
2016-12-31 02:20:56 -04:00
Roberto Rosario
1e194e04fa
Move new version creation blocking from the documents app to the checkouts app.
...
Closes GitLab #294 .
2016-12-22 01:45:43 -04:00
Roberto Rosario
c0194c63dc
Refactor document page image generation and transformation classes
...
to cache all transformed versions of a document page.
2016-11-02 02:34:57 -04:00
Roberto Rosario
8d549df088
Index the is_stub and is_deleted document boolean fields.
2016-05-09 19:54:32 -04:00
Roberto Rosario
bd648d0cb1
Postgresql needs typecasting for turning char fields into native UUID fields.
...
Conditionally run the necesary SQL for this to happen. GitLab issue #266 Thanks to Baptiste GAULLET @bat79a for finding the solution.
2016-05-05 23:17:32 -04:00
Roberto Rosario
23f40ac4aa
PEP8 cleanups.
2016-04-27 20:31:02 -04:00
Roberto Rosario
355190e919
Start of document_signatures app refactor.
2016-03-25 04:07:57 -04:00
Roberto Rosario
4c4409aa1e
PEP8 cleanups.
2016-03-17 00:44:54 -04:00
Roberto Rosario
3d36f1b828
Update Document model's uuid field to use Django's native UUIDField class.
2016-03-15 01:44:34 -04:00
Roberto Rosario
5b6b35f1c3
Make document type deletion period optional.
2016-03-09 14:39:16 -04:00
Roberto Rosario
ca15cadc5e
Add missing migration for pycountry update.
2016-01-22 04:01:49 -04:00
Roberto Rosario
da4c41c5b2
Change the way new document version are blocked, moving the logic to the documents app from the checkouts app signal handler. Disable the upload new document version button and have the new version upload view redirect to the document version list with a message. GitLab issue #231 .
2015-10-23 06:06:59 -04:00
Roberto Rosario
df417f562c
PEP8 Cleanups (471 warnings).
2015-09-17 21:34:27 -04:00
Roberto Rosario
60e64b92fd
PEP8 Cleanup (495 warnings).
2015-09-16 09:33:16 -04:00
Roberto Rosario
399103488c
PEP8 cleanups
2015-08-25 20:49:42 -04:00
Roberto Rosario
7392e80fc2
PEP8 Cleanups.
2015-08-24 20:55:45 -04:00
Roberto Rosario
fbc28f5bbc
Index the user field of the recent document model to reduce view rendering as per profiling results.
2015-08-24 03:04:24 -04:00
Roberto Rosario
830c32c30f
Add missing documents migration.
2015-07-29 19:43:56 -04:00
Roberto Rosario
c275988c90
PEP8 cleanups, E501: 79 character long lines.
2015-07-19 03:27:41 -04:00
Roberto Rosario
68e450a3c7
Migrate all document languages and use the 'terminology' language abbreviation. gh-issue #211
2015-07-18 03:56:09 -04:00
Roberto Rosario
91a9b3b045
Finish document upload task refactor. Increase failure tolerance to database Operational Errors.
2015-07-15 04:36:23 -04:00
Roberto Rosario
fc9d7b1a8b
Remove celery code execute from model. Allow for default at the model level.
2015-07-15 01:03:23 -04:00
Roberto Rosario
aed6569096
Index frequently used document version and document fields.
2015-07-13 20:59:53 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
f2efbc95af
Document descriptions don't need to allow null.
2015-07-07 23:25:39 -04:00
Roberto Rosario
7a11fddcc1
Add migrations to sync model options.
2015-07-07 21:15:29 -04:00
Roberto Rosario
c861799b6b
Rename document type model 'name' field to 'label'.
2015-07-07 21:12:44 -04:00
Roberto Rosario
b642e4005e
PEP8 cleanups
2015-07-06 02:07:50 -04:00
Roberto Rosario
8cc05bbefb
Initial commit of new document upload workflow which allows for document promises to be returned after POST request, gh-issue #194 . Add new signal when a document is uploaded and finally ready, gh-issue #193 and gh-issue #213 .
2015-07-05 03:33:27 -04:00