Convert initial value that comes as int to a list of flag names.

When editing an object the widget works as expected.
The exception occurs only when adding a new object.
fix indent
fix indent take two
Style cleanup. Check if initial is in kwargs.