Commit Graph

106 Commits

Author SHA1 Message Date
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
Roberto Rosario
9f2692d36a PEP8 cleanup, unused import removal 2014-11-02 21:20:29 -04:00
Roberto Rosario
ba1729106f Pass arguments to the logger the correct way 2014-11-02 20:55:21 -04:00
Roberto Rosario
09f4280f58 Only display metadata allowed for this document type in the add metadata view 2014-10-30 15:23:57 -04:00
Roberto Rosario
199a07ef8f Display errors while adding a metadata to a document 2014-10-30 15:16:58 -04:00
Roberto Rosario
d9d564bc4d Raise metadata editing errors while on debug mode 2014-10-30 15:01:02 -04:00
Roberto Rosario
779ebd4966 Don't import the api_urls at app import time, let the APIEndpoint class import them lazily 2014-10-30 13:21:37 -04:00
Roberto Rosario
d66a9b5acf Synchronize translations with Transifex 2014-10-30 11:50:48 -04:00
Roberto Rosario
8a5f215779 Update translation sources 2014-10-30 11:39:32 -04:00
Roberto Rosario
d7b26e8bbe Show which document metadata are required, show validation error when trying to remove a required metadata type from a document 2014-10-30 03:21:44 -04:00
Roberto Rosario
8ac8292ad8 Enable required metadata types in the metadata selection form 2014-10-30 03:21:09 -04:00
Roberto Rosario
d92bd67331 Add validation to block removal of required metadata types from a document 2014-10-30 03:20:37 -04:00
Roberto Rosario
9749ce73b6 Automatically add required metadata types only when creating a new document 2014-10-30 03:20:08 -04:00
Roberto Rosario
cf51f70da7 Change the name of the variable used as the main title for multiform template 2014-10-30 02:45:40 -04:00
Roberto Rosario
c4c2646b60 Add view to add or remove required metadata types to a document type, simplify existing view to add remove optional metadata types 2014-10-30 02:28:49 -04:00
Roberto Rosario
375de8270e Add manager class to handle the metadata types of a document type easily 2014-10-30 02:28:19 -04:00
Roberto Rosario
727ae0bea8 Add TODO reminder 2014-10-30 02:27:37 -04:00
Roberto Rosario
879f90547c Update metadata admin 2014-10-30 02:26:18 -04:00
Roberto Rosario
95a27df1e3 Change the way metadata types are associated to a document type, add required boolean field to the association 2014-10-30 02:24:12 -04:00
Roberto Rosario
eb878c165b Revert "Issue #56, #8, now that metadata types are automatically added to a document upon type change, there is no more need for the document metadata add and remove code, view, API"
This reverts commit c390fc21d7.

Re adding this feature, only required metadata should be automatically added, optional metadata would be added by the user
2014-10-29 20:17:19 -04:00
Roberto Rosario
3909d60e9a Issue #56, Remove child_views, child_urls, children_path_regex, children_view_regex link support 2014-10-28 17:41:10 -04:00
Roberto Rosario
9596beac79 Update translation messages sources 2014-10-28 17:21:37 -04:00
Roberto Rosario
2c2dfa88cc Issue #84, Remove template context variable 'object_name' to improve ease of translation 2014-10-28 02:36:43 -04:00