Move add_to_class functions to their own module
* The new module is called methods.py and found on each app. * Add keyword arguments to add_to_class instances. * Remove catch all exception handling for the check in and check out views. * Improve checkouts tests code reducing redundant code. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from mayan.apps.appearance.classes import Icon
|
||||
|
||||
icon_checkout_info = Icon(driver_name='fontawesome', symbol='shopping-cart')
|
||||
icon_dashboard_checkouts = Icon(
|
||||
icon_check_out_info = Icon(driver_name='fontawesome', symbol='shopping-cart')
|
||||
icon_dashboard_check_outs = Icon(
|
||||
driver_name='fontawesome', symbol='shopping-cart'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user