Commit Graph

328 Commits

Author SHA1 Message Date
Roberto Rosario
d59ea3ede2 Add from __future__ import unicode_literals, issue #37 2015-01-19 04:06:40 -04:00
Roberto Rosario
686b2f69dc Translation files updates 2015-01-18 02:40:36 -04:00
Roberto Rosario
bd1d293437 Translation updates 2015-01-18 02:05:47 -04:00
Roberto Rosario
92ad982c8a Simplify text messages 2015-01-18 02:04:33 -04:00
Roberto Rosario
d511c3d132 Update translation files 2015-01-17 03:28:39 -04:00
Roberto Rosario
7344db5c76 Update translations 2015-01-17 03:16:15 -04:00
Roberto Rosario
101bfbc5da Update apps' source translation files 2015-01-17 03:03:52 -04:00
Mathias Behrle
1cebc4d7bf Correcting typo in message. 2015-01-17 01:47:31 +01:00
Roberto Rosario
a2bcc38b08 Properly pluralize the messages of the document metadata type add view 2015-01-16 02:14:35 -04:00
Roberto Rosario
95dd017b23 Extend issue #144 solution to the document metadata remove view too. 2015-01-16 02:12:26 -04:00
Roberto Rosario
72a0c2dd95 Properly pluralize document metadata edit view 2015-01-16 02:08:15 -04:00
Roberto Rosario
6c854116b5 Detect when a selected document or documents do not have any metadata, display a proper message and return user to the last previous view. Issue #144 2015-01-16 02:06:24 -04:00
Roberto Rosario
f967188aeb Add a sample validation function. The parse_date will parse and cleanup dates entered by users. Issue #104. 2015-01-14 16:55:52 -04:00
Roberto Rosario
4dfecb4614 Refactore form clean code for value validation or parsing, issue #104. 2015-01-14 16:55:01 -04:00
Roberto Rosario
490e9a1e42 Remove value field from the document metadata remove form to avoid running validation on remove and blocking removal when validation didn't pass 2015-01-14 15:58:04 -04:00
Roberto Rosario
3399c354be Update field name according to last model property rename 2015-01-14 15:52:52 -04:00
Roberto Rosario
e4d68cb711 Also show exception with no messages, raise exception into request if in debug mode for easier debugging of unexpected errors 2015-01-14 15:51:51 -04:00
Roberto Rosario
f5e1adedfa Add field to set validation function separately from the lookup field 2015-01-14 15:50:41 -04:00
Roberto Rosario
661a63030b Add tool to show list of documents with empty metadata that is required for their type. Issue #34. 2015-01-12 01:50:44 -04:00
Roberto Rosario
05bc204d99 Update language translation source files 2015-01-11 18:12:06 -04:00
Roberto Rosario
f7f71d706d Improve the multi item action dropdown separator appearance 2015-01-08 00:45:18 -04:00
Roberto Rosario
7e2320c9d3 Update the ModelAttribute values for document metadata to reflect the related_name change from: 'document_metadata' to 'metadata' 2015-01-07 05:06:37 -04:00
Roberto Rosario
aca9d8c9eb Remove unused imports, do PEP8 and DeprecationWarning cleanups 2015-01-05 14:40:59 -04:00
Roberto Rosario
c195f74310 Fix document type metadata type references 2015-01-05 05:13:09 -04:00
Roberto Rosario
35821df7ee Add TODO reminder 2015-01-03 12:17:36 -04:00
Roberto Rosario
cff4a97d34 Simplify document metadata API endpoints, make document metadata endpoints more consistent, improve error reporting 2014-12-13 06:40:57 -04:00
Roberto Rosario
ab37b4bc35 Update document metadata accessor 2014-12-09 03:18:27 -04:00
Roberto Rosario
ac928d028a Use a more sensible default 2014-12-08 23:37:01 -04:00
Roberto Rosario
49d00408d8 Update related_name 2014-12-08 23:23:04 -04:00
Roberto Rosario
2fda25590f Update the document type' document required metadata types using signals instead of relying on DocumentTypeHelper class methods 2014-12-08 19:35:52 -04:00
Roberto Rosario
11ff561b3a Remove DocumentTypeHelper class, use direct Django methods 2014-12-08 19:35:25 -04:00
Roberto Rosario
82bedefff6 Add unicode method, update and optimize validation code 2014-12-08 19:34:40 -04:00
Roberto Rosario
bb783fa2e1 Simplify code 2014-12-08 19:34:11 -04:00
Roberto Rosario
704abb7059 Use related_name 'metadata' to access document types' metadata types 2014-12-08 18:37:54 -04:00
Roberto Rosario
5050c7319c Remove preemptive document metadata selection 2014-12-08 18:33:57 -04:00
Roberto Rosario
4b7f4a683f Simplify and improve document metadata views, improve docstrings 2014-12-02 00:44:41 -04:00
Roberto Rosario
4aa84b778c Only allow one instance of a metadata type per document 2014-12-02 00:43:56 -04:00
Roberto Rosario
ca847bed2c Add document type metadata type API endpoints documentation 2014-12-01 16:17:04 -04:00
Roberto Rosario
d257d6db85 Merge document type optional and required metadata type add views 2014-12-01 16:14:14 -04:00
Roberto Rosario
32d2608bdd Only add metadata type it is not in the list 2014-12-01 16:09:26 -04:00
Roberto Rosario
eff81cf8af Close issues #118 and #119 2014-11-12 02:15:52 -04:00
Roberto Rosario
84493b7a72 PEP8 Cleanups 2014-11-11 14:58:37 -04:00
Roberto Rosario
8194e898a0 Make the title field of the MetatadaType model a required field 2014-11-11 04:23:31 -04:00
Roberto Rosario
742cc02305 Document the usable document attributes added by the metadata app using ModelAttribute class, add DocumentMetadataHelper to help retrieve a document metadata value easier 2014-11-11 02:58:49 -04:00
Roberto Rosario
524b99cdd0 Remove unused class 2014-11-09 00:00:29 -04:00
Roberto Rosario
c9c38ce5ed Using accesor attribute to add metadata to a document gives and error, use the model directly 2014-11-05 01:01:10 -04:00
Roberto Rosario
7d9277ce8b Only allow document metadata view when select same type documents 2014-11-03 02:56:29 -04:00
Roberto Rosario
8a54e2bde4 Add flag to allow signals to bypass metadata validation 2014-11-03 00:09:58 -04:00
Roberto Rosario
1905a1ee3c Show metadata edit validation error properly 2014-11-03 00:09:25 -04:00
Roberto Rosario
5ca3684712 Reduce number of queries for document metadata retrieval 2014-11-02 23:41:12 -04:00