Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:viewflow/django-fsm
Browse files Browse the repository at this point in the history
  • Loading branch information
kmmbvnr committed Apr 9, 2024
2 parents 7eed13c + 7285554 commit e56c788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_fsm/management/commands/graph_transitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def generate_dot(fields_data):

final_states = targets - sources
for name, label in final_states:
subgraph.node(name, label=label, shape="doublecircle")
subgraph.node(name, label=str(label), shape="doublecircle")
for name, label in (sources | targets) - final_states:
subgraph.node(name, label=label, shape="circle")
subgraph.node(name, label=str(label), shape="circle")
if field.default: # Adding initial state notation
if label == field.default:
initial_name = node_name(field, "_initial")
Expand Down

0 comments on commit e56c788

Please sign in to comment.