Use viewsets for the events app API.
Use new link badge support for the unread notification
count display.
Remove AJAX workers support now that it is now needed
anymore.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update serializers to be a subclass of
LazyExtraFieldsHyperlinkedModelSerializer to allow adding
more fields remotely.
Update URL fields to use MultiKwargHyperlinkedIdentityField.
Rename URL fields for uniformity.
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@mayan-edms.com>
Update the API routers registration to not duplicate
the document's URL parameter definition.
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@mayan-edms.com>
This refactor adds two new endpoints to view the OCR
content of versions and documents.
Signed-off-by: Roberto Rosario <Roberto.Rosario.Gonzalez@mayan-edms.com>
These views allow accesing the tags list of a document as
well as attaching or removing tags in bulk.
The URLs for tag list, attach and remove are added to the
DocumentSerializer.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This class is a mixin of LazyExtraFieldsSerializerMixin and
serializers.HyperlinkedModelSerializer. It allows adding fields
to a 3rd party app serializer without having to import the serializer.
Referencing is done using the dotted path of the serializer.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Rename the get_menu_links and get_menus_links to
navigation_resolve_menu.
Change the return value of the menu resolving to include
the resolved object.
Update the links display templates to show which object the
links belong to when there is more than one object.
Update the links display templates to show which menu
the links belong to when there is more than one menu.
Remove the sidebar menu and unify its links with the
secondary menu.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the ACL permission view to use the new AddRemoveView.
Add ACL created and ACL edit events.
Add permission adding and removal accesors to the ACL model.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Make sure to always used the base filtered source queryset.
Remove the grouped attribute which is subclass specific.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
View that use the MultipleObjectMixin can now fully operate
as single object or multiple object views.
Add the self.view_mode_single and self.view_mode_multiple flags.
Add support for single, singular and plural titles and success
messages via:
success_message_single, success_message_singular,
sucess_message_plural, title_single, title_singular and
title_plural class attributes.
Insert object_list and object as attributes of the view class
to avoid calling the queryset again.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Use the new AddRemove View for the Role's group and
permissions views as well as the Group's role views.
Convert the API to use viewsets.
Add more tests.
Add role created and edited events.
Add event subscription support to roles.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add a new view based on AssignRemove with extra features
and filtering. AddRemoveView also has two new buttons:
Add all, Remove all.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>