Roberto Rosario
c731ab7050
Add kwargs and update string formatting
...
Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com >
2019-10-10 14:50:26 -04:00
Roberto Rosario
891861eaf5
Raise errors when DEBUG is True
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-06-14 00:20:14 -04:00
Roberto Rosario
ab97c95bab
Add default icons for the confirm form buttons
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-14 18:02:04 -04:00
Roberto Rosario
5e4518211f
Remove related attribute of check_access
...
Remove filter_by_access. Replaced by restrict_queryset.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-07 02:26:50 -04:00
Roberto Rosario
95a1df8072
Backport common mixin and generics improvements
...
* Rename get_object_list to get_source_queryset.
* Add uniqueness validation to SingleObjectCreateView.
* Remove MultipleInstanceActionMixin.
* Backport MultipleObjectMixin improvements.
* Remove ObjectListPermissionFilterMixin.
* Add and improve tests.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-06 02:07:35 -04:00
Roberto Rosario
d7db8468ac
Remove AssignRemove view
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-05-04 20:50:16 -04:00
Roberto Rosario
33056dec04
Allow overloading action_add and action_remove
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-28 00:57:54 -04:00
Roberto Rosario
a556f2a1ba
Add AddRemoveView to replace the AssignRemove
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-24 22:21:55 -04:00
Roberto Rosario
cd00c6abf0
Support marking columns as indetifier and sortable
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2019-04-23 19:22:35 -04:00
Roberto Rosario
061366ffec
Update apps' other modules to use the new Icon class.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-29 02:54:14 -04:00
Roberto Rosario
d7ecdac6b0
Fix PEP8 warnings.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-06 01:26:06 -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
4096b8b882
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-24 20:30:46 -04:00
Roberto Rosario
fb520d6f92
Add view mixin to make sure a subclass can't override its
...
parent's get_queryset method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-14 05:19:50 -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
a72ac6eadb
Add user mailer backends support. GitLab issue #286 .
...
Add support for creating dynamic forms.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-03 13:37:56 -04:00
Roberto Rosario
610e10e85a
Include django-downloadview's assert_download_response as a
...
BaseTest member.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-01 00:54:21 -04:00
Roberto Rosario
a889a58a39
Sort multi form view methods.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-04-27 00:57:41 -04:00
Roberto Rosario
9753146785
Add the FormExtraKwargsMixin to SingleObjectDetailView view.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-03-25 00:50:24 -04:00
Roberto Rosario
eaa9af55c4
Silence the PEP8 warning F405 "may be undefined, or defined from star imports".
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-02-22 17:17:02 -04:00
Roberto Rosario
9f837aaade
Add view to clone a document page transformations to other pages.
2017-01-16 01:05:34 -04:00
Roberto Rosario
c21eb6d4cf
Refacto ActionView into MultipleObjectFormActionView and MultipleObjectConfirmActionView.
...
Split ActionView into smaller mixins.
2016-12-21 03:27:27 -04:00
Roberto Rosario
a0bcbdbce9
Add support for attaching multiple tags to single or multiple documents in a single action. GitLab issue #307 . Thanks to @zabeloliver for the initial request and to @gersilex for the implementation ideas.
2016-12-20 05:25:51 -04:00
Roberto Rosario
a5a6afe240
Update MultiFormView CBV to work with Django 1.9.x
2016-11-14 01:47:19 -04:00
Roberto Rosario
6e3d99670c
Complete conversion of download views to CBV views using django-downloadview.
...
This also removes dependency on the filetransfers library.
2016-10-31 01:00:35 -04:00
Roberto Rosario
23f40ac4aa
PEP8 cleanups.
2016-04-27 20:31:02 -04:00
Roberto Rosario
3b593e10fd
Add django-downloadview to the used packages. Add a Mayan generic sub class download view based on django-downloadviews' virtual download view class.
2016-03-29 05:11:08 -04:00
Roberto Rosario
c07f5a7820
Add object permission checking to the generic ConfirmView.
2016-03-21 02:37:14 -04:00
Roberto Rosario
145161cef4
PEP8 cleanups.
2016-03-19 03:00:03 -04:00
Roberto Rosario
50f473b698
Improve translation template.
2016-03-19 02:00:30 -04:00
Roberto Rosario
ed8ac47240
Extract context object name from the models meta options.
2016-03-19 01:57:30 -04:00
Roberto Rosario
2c9a01bdfc
Improve the date localte handling of the DetailView and DetailForm.
2016-03-09 23:22:31 -04:00
Roberto Rosario
927c0bf657
Remove remaining usage of django.contrib.auth.model.User. GitLab issue #225 .
2016-03-08 02:21:03 -04:00
Roberto Rosario
74fd47d86e
Unify handling for generic CBV views errors and 'object_name'.
2016-03-08 01:13:06 -04:00
Roberto Rosario
14184b8c76
Add view to queue document for OCR by document type.
2015-09-27 01:37:57 -04:00
Roberto Rosario
c796f2b2c4
TODO comment cleanups. Remove unused Document model method.
2015-09-26 23:50:57 -04:00
Roberto Rosario
e1a04d9838
Convert document trash view to CBV. Improve ConfirmView based CBVs.
2015-09-15 02:02:38 -04:00
Roberto Rosario
72c63bfedc
Improve form and object data passing code.
2015-08-25 20:28:59 -04:00
Roberto Rosario
b9a07e3fcf
Add new SingleObjectDetailView CBV.
2015-08-24 03:00:49 -04:00
Roberto Rosario
95cb49bfcb
Add mixin to pass extra argument during object deletion. Used for logging the user performing an action.
2015-08-23 22:33:22 -04:00
Roberto Rosario
a9517b9645
Remove blind autocapitalization.
2015-08-23 21:38:48 -04:00
Roberto Rosario
8cd14a2ae1
Add mixin to add extra instance data to the CBV create and edit views.
2015-08-23 21:37:17 -04:00
Roberto Rosario
68f3c6eee7
PEP8 cleanups.
2015-08-19 14:50:44 -04:00
Roberto Rosario
e084445aa4
Read pagination size per instance not per class.
2015-08-18 23:06:50 -04:00
Roberto Rosario
1b6bcbf3fe
Remove usage of ParentChildListView until properly re-implemented.
2015-08-15 02:46:02 -04:00
Roberto Rosario
702bac8ed2
Replace django-pagination with django-pure-pagination and use Django's native CBV pagination context.
2015-08-15 02:28:37 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
ac1f4eb59a
Improve the way the AssignRemove view gets the list's help texts. Don't use None for extra context if there is none.
2015-07-13 01:16:17 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00