Michael Price
d64f72351d
Customize the empty formset message for the document type metadata type relationship view.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 01:52:42 -04:00
Roberto Rosario
2052caada4
Remove PreserveGetQuerySet mixin. Update SingleObjectList and
...
MultipleObjectFormActionView views to use a new get_object_list method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-08-16 22:12:24 -04:00
Roberto Rosario
f09321f6ab
Fix deprecation warnings for Django 1.11 and Django 2.0.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-21 00:25:18 -04:00
Roberto Rosario
42a762481b
Fix issue when editing or removing metadata from multiple documents.
...
Bump version to 2.6.1.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-18 17:56:30 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
95157460cb
Add new UI method to switch between required metadata and optional
...
metadata without incurring in metadata value loss.
Add modifying relationship of document type and metadata type
from the document type and from the metadata type views.
Closes GitLab issues #337 #373 .
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 04:39:54 -04:00
Roberto Rosario
08dcbef2fc
Don't silence validation errors.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-12 16:18:03 -04:00
Roberto Rosario
6af1010f3a
Preload metadata add form with metadata type valid for the context document.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-12 16:16:28 -04:00
Roberto Rosario
c769f7bd1b
Don't silence exceptions in production mode.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-06-10 18:13:23 -04:00
Roberto Rosario
22a14d6a20
Fix document add metadata view and form to work when there are no documents in the view.
...
ie: when the user has no permissions.
2017-01-14 03:08:53 -04:00
Roberto Rosario
5167bbadee
Refactor the document metadata add, edit and remove views.
2016-12-28 00:57:04 -04:00
Roberto Rosario
5893e149e0
Reduce the check_access boilerplate code.
2016-11-02 04:58:05 -04:00
Roberto Rosario
621c988809
Simplify filter_by_access boilerplate code
2016-11-02 03:48:16 -04:00
Roberto Rosario
6bf352ecbb
Fix queryset assigment, should always be of MetadataType not DocumentTypeMetadataType, errors out on Postgres.
2016-03-15 18:39:48 -04:00
Roberto Rosario
ce6a1f4020
Merge branch 'master' into feature/merge_master
2016-03-03 16:46:11 -04:00
Roberto Rosario
03e7339f9b
Only extract validation error messages from ValidationError exception instances.
2016-02-10 02:26:57 -04:00
Roberto Rosario
24644e3538
Remove select_related using reverse related name field.
2016-01-27 18:34:32 -04:00
Roberto Rosario
460076004a
Fix GitLab issue #245 , "Add multiple metadata not possible"
2016-01-12 03:48:21 -04:00
Roberto Rosario
23270e948c
PEP8 cleanups.
2015-11-02 17:40:27 -04:00
Roberto Rosario
750127eb92
Raise PermissionDenied on single document access, show 'Selected at least 1 document' when the multidocument view is used. GL issue #240 .
2015-11-01 03:06:40 -04:00
Roberto Rosario
414c55f824
Update the metadata_add and metadata_remove views to use the new ACL filter_by_access code. Update and improve tests.
2015-10-23 02:52:27 -04:00
Roberto Rosario
8744bd82ee
Fix allow editing a required metadata after changing the document type. Closes issue GL #204 .
2015-10-15 16:40:35 -04:00
Roberto Rosario
cb98f0f2d2
Pass document_type to the remove metadata formset.
2015-10-10 02:44:29 -04:00
Roberto Rosario
7392e80fc2
PEP8 Cleanups.
2015-08-24 20:55:45 -04:00
Roberto Rosario
1f32aa3c0b
Add extensible data filtering feature allowing to remove hard coded listing of documents with missing required metadata. Closes gl-issue #178 .
2015-08-24 17:33:24 -04:00
Roberto Rosario
9599a3f8ab
Split metadata validators in validators and parsers. Move document and upload wizard metadata validation logic to model. Add metadata tests.
2015-08-20 04:37:49 -04:00
Roberto Rosario
cc2927c4cd
Remove remaining usage of lists for extra_column.
2015-08-20 00:44:24 -04:00
Roberto Rosario
683e54fea1
Replace unused lists with tuples.
2015-08-19 13:57:38 -04:00
Roberto Rosario
60bc327756
Improve SourceColumn workflow by allowing explicit functions as columns. Remove usage of encapsulate. Move instances of 'extra_columns' to SourceColumn.
2015-08-16 14:26:41 -04:00
Roberto Rosario
561b56b12a
Replace usage of get_context_data with get_extra_context.
2015-08-15 03:02:02 -04:00
Roberto Rosario
0fe902b52a
Convert document metadata list view to CBV.
2015-08-14 14:54:04 -04:00
Roberto Rosario
97bba65668
Code style updates, change lists to tuples.
2015-08-13 15:27:22 -04:00
Roberto Rosario
3b728328ad
PEP8 cleanups, E501.
2015-07-23 04:05:29 -04:00
Roberto Rosario
0a0a92116e
Get rid of eval in metadata type default and lookup fields. gh-issue #151 .
2015-07-23 02:49:29 -04:00
Roberto Rosario
58d919d173
Initial commit to remove use of eval. gh-issue #151 .
2015-07-22 23:19:43 -04:00
Roberto Rosario
498f258f59
Convert metadata edit, delete and create views to CBV. Remove unused metadata type form.
2015-07-09 01:19:20 -04:00
Roberto Rosario
d2123089ec
Convert metadata type list view to CBV.
2015-07-08 22:05:32 -04:00
Roberto Rosario
23fda5561e
Propery filter documents queryset on CBV that return a list of documents.
2015-07-01 17:01:41 -04:00
Roberto Rosario
ace76fc69c
Update apps for new ACLs refactor.
2015-07-01 16:36:20 -04:00
Roberto Rosario
e9ea2dc35a
Modernize usage of the AssignRemove CBV
2015-06-30 17:19:56 -04:00
Roberto Rosario
1c084aa07b
Split Permission and StoredPermission class and model into different modules. Simplified the Permission class.
2015-06-28 01:03:29 -04:00
Roberto Rosario
d26402974a
Allow registering permission from the permission namespace. Replace all permission variables to be lowercase (style guide reserver uppercase variables for constants and literals).
2015-06-28 00:19:49 -04:00
Roberto Rosario
a5e922416b
Make generates_choices_w_label a static method of AssignRemove, it's not anywhere else.
2015-06-23 03:13:28 -04:00
Roberto Rosario
32fe03aaa7
PEP8 clean up and trivial typo fixes
2015-06-08 15:54:54 -04:00
Roberto Rosario
9084c3c651
Simplify and remove old code
2015-04-07 16:04:09 -04:00
Roberto Rosario
a522292ee4
Convert document type optional and required metadata views to CBV assign remove view
2015-04-07 03:22:48 -04:00
Roberto Rosario
d79f36bfcb
Replace function views with class based views
2015-04-06 20:24:18 -04:00
Roberto Rosario
23fc9f1e36
Merge main and common apps, extract authentication functionality to new authentication app. Closes issues #179 and #180
2015-04-06 16:09:54 -04:00
Roberto Rosario
db340513d0
Remove use of 'navigation_object_name' template variable and simplify the use of the 'navigation_object_list' template variable
2015-04-05 01:45:30 -04:00
Roberto Rosario
5dabc0a34a
Add new appearance app to hold all of the base templates, images, icons and external packages related to the frontend and look of the project
2015-03-30 02:17:40 -04:00