Commit Graph

4094 Commits

Author SHA1 Message Date
Roberto Rosario
35b6ce5285 Don't set the default document label in the view, do it at the task level which is accesible always. 2015-07-08 01:01:20 -04:00
Roberto Rosario
afafd45af9 Preserve original filename when saving. 2015-07-08 00:59:56 -04:00
Roberto Rosario
68395266a4 Make sure all document types have they ocr_settings entry created. 2015-07-08 00:41:51 -04:00
Roberto Rosario
1b756486f2 Test update 2015-07-08 00:27:39 -04:00
Roberto Rosario
1e588d87eb Store an empty string if no document description is given. 2015-07-08 00:27:13 -04:00
Roberto Rosario
857cf7b1b2 Add browser cookie support for timezone middleware. 2015-07-08 00:17:44 -04:00
Roberto Rosario
3861bc351a Remove unused code. 2015-07-07 23:37:51 -04:00
Roberto Rosario
8d91ef2858 Update remaining title reference. 2015-07-07 23:36:24 -04:00
Roberto Rosario
4e4103803f Rename folder model 'title' field to 'label'. 2015-07-07 23:34:27 -04:00
Roberto Rosario
4860b44daf Rename source model title field to 'label'. 2015-07-07 23:30:52 -04:00
Roberto Rosario
f2efbc95af Document descriptions don't need to allow null. 2015-07-07 23:25:39 -04:00
Roberto Rosario
f4bcab2341 Rename metadata type title field to label. 2015-07-07 23:25:05 -04:00
Roberto Rosario
ac5f403997 Rename smart links title and dynamic_title fileds to label and dynamic_label. 2015-07-07 23:20:48 -04:00
Roberto Rosario
a5cee3c963 Split sources app tests. 2015-07-07 22:03:58 -04:00
Roberto Rosario
77157cab2c Split tests into tests for models, views and API, very good recommendation from Two Scoops of Django by @pydanny and @audreyr. 2015-07-07 21:49:50 -04:00
Roberto Rosario
0e81ea2ab8 Avoid triggering migration creation using functions for choices and validators choices. 2015-07-07 21:21:08 -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
ab2d4537dc Remove name field. Rename title field to label. 2015-07-07 21:04:00 -04:00
Roberto Rosario
efad777656 Cleanups. 2015-07-07 20:52:10 -04:00
Roberto Rosario
e7224474e6 Convert document checkout view to CBV. 2015-07-07 20:49:20 -04:00
Roberto Rosario
17c454a53a Add checkout expiration time validation. Sort field arguments according to style guide. 2015-07-07 20:48:36 -04:00
Roberto Rosario
b96ba86991 Reduce widget complexity. 2015-07-07 20:48:23 -04:00
Roberto Rosario
941207eb04 Don't override get_context_data use get_extra_context for this purpose. 2015-07-07 20:47:36 -04:00
Roberto Rosario
69ea0a61e8 Get post_action_redirect and action_cancel_redirect from methods to allow overriding with context. 2015-07-07 20:46:49 -04:00
Roberto Rosario
bd8487848a Disable OCR, not unsed in this test. 2015-07-07 03:01:42 -04:00
Roberto Rosario
e17bc416b8 Tests updates. 2015-07-07 02:59:45 -04:00
Roberto Rosario
e82a9d0c9f Add missing import. 2015-07-07 02:58:55 -04:00
Roberto Rosario
aeac8143ee Use BytesIO instead of StringIO, the last one doesn't work using 'with' context. 2015-07-07 01:49:47 -04:00
Roberto Rosario
46b6f908f4 Misc test fixes. 2015-07-07 01:30:32 -04:00
Roberto Rosario
a59234bb83 Use SharedUploadedFile's new open() method. 2015-07-07 01:28:06 -04:00
Roberto Rosario
01cf7780c0 Add reminder. 2015-07-07 01:25:52 -04:00
Roberto Rosario
4f044cecc7 Don't use the original's filename as a path. Provide an open() method which return a proper file-like object. 2015-07-07 01:24:34 -04:00
Roberto Rosario
091dad9b45 Fix SharedUpload model field name. 2015-07-06 14:32:37 -04:00
Roberto Rosario
9784ae88a4 Update release notes. 2015-07-06 03:18:54 -04:00
Roberto Rosario
1f6b93616d Update more tests to new internal APIs. 2015-07-06 03:18:36 -04:00
Roberto Rosario
51fd266d40 Update documents app tests, disabled several non passing functional test as these will be moved to the common app. 2015-07-06 03:04:19 -04:00
Roberto Rosario
8bdd8e032d Update documents app API views. 2015-07-06 03:02:17 -04:00
Roberto Rosario
7979b097ef Explictly delete document when deleting a document type. Remove unused code. Pop argument 'to_trash' from document.save to avoid super() error. 2015-07-06 02:42:19 -04:00
Roberto Rosario
7e9fa745c6 'Expand' is no longer a feature of the document's apps, but of the source's app, remove it from the document's serializer. 2015-07-06 02:21:56 -04:00
Roberto Rosario
b642e4005e PEP8 cleanups 2015-07-06 02:07:50 -04:00
Roberto Rosario
6eeba3ee67 Update document indexing test to take into account new trash feature. 2015-07-06 02:04:05 -04:00
Roberto Rosario
8727f093e0 Don't initialize a document type's OCR settings via the view, do so via signal on document type creation. 2015-07-06 01:36:17 -04:00
Roberto Rosario
3f53d35083 Remove unused import 2015-07-06 01:21:58 -04:00
Roberto Rosario
8bd0831ed6 Fix authentication app tests. 2015-07-06 01:19:11 -04:00
Roberto Rosario
1c3d88f746 Code style 2015-07-06 01:19:00 -04:00
Roberto Rosario
6efb032298 PEP8 cleanups 2015-07-06 00:48:40 -04:00
Roberto Rosario
f55929403b Add setter to change the value of a setting. 2015-07-06 00:48:16 -04:00
Roberto Rosario
dcf3a77c66 Don't try to set locale preferences for new users or existing users that have not set any preferences. 2015-07-06 00:22:09 -04:00
Roberto Rosario
3c486e14a1 DRY, make development w/ DDT settings inhering from normal development settings file. 2015-07-06 00:13:17 -04:00