File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11__title__ = 'django-process'
22__description__ = 'An app for create process workflows and schedule tasks on django'
33__url__ = 'https://github.com/Jesrat/django-process'
4- __version__ = '4.7.4 '
4+ __version__ = '4.7.5 '
55__author__ = 'Josue Gomez'
66__author_email__ = 'jgomez@jesrat.com'
77__license__ = 'Apache 2.0'
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ class Process(models.Model):
2727 day_of_month = models .CharField (_ ("day of month" ), max_length = 50 )
2828 month = models .CharField (_ ("month" ), max_length = 50 )
2929 day_of_week = models .CharField (_ ("day of week" ), max_length = 50 )
30+ chart_height = models .PositiveIntegerField (_ ("chart height" ), default = 0 )
3031 objects = models .Manager ()
3132
3233 def __str__ (self ):
Original file line number Diff line number Diff line change 1212<script>
1313Highcharts.chart('container-process-{id}', {
1414 chart: {
15- height: """ + get_conf ( 'diagram__chart_height' ) + """ ,
15+ height: {chart_height} ,
1616 inverted: true
1717 },
1818 title: {
@@ -97,4 +97,5 @@ def diagram(obj):
9797 response = response .replace ('{name}' , str (obj .__str__ ()))
9898 response = response .replace ('{data}' , str (data ))
9999 response = response .replace ('{nodes}' , str (nodes ))
100+ response = response .replace ('{chart_height}' , process .chart_height or get_conf ('diagram__chart_height' ))
100101 return mark_safe (response )
You can’t perform that action at this time.
0 commit comments