Skip to content

Commit

Permalink
Remove print()
Browse files Browse the repository at this point in the history
  • Loading branch information
cachitas committed Apr 15, 2019
1 parent 2fc3e1a commit ec83c92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyforms_web/widgets/django/modelform.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,11 +980,12 @@ def create_model_formfields(self):


elif isinstance(field, models.Field) and field.choices:

print(field.get_choices(include_blank=field.blank,))
pyforms_field = ControlCombo(
label,
items=[ (c[1],c[0]) for c in field.get_choices(include_blank=field.blank)],
items=[
(c[1], c[0])
for c in field.get_choices(include_blank=field.blank)
],
default=field.default
)
elif isinstance(field, models.BigIntegerField): pyforms_field = ControlInteger( label, default=field.default )
Expand Down

0 comments on commit ec83c92

Please sign in to comment.