Skip to content

Commit

Permalink
Fixed placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
desafinadude committed Jan 15, 2025
1 parent a28378b commit f36d9a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pmg/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1261,6 +1261,7 @@ def get_list(self, term, offset=0, limit=DEFAULT_PAGE_SIZE):
return query.offset(offset).limit(limit).all()

class InlineBillFileForm(InlineFormAdmin):

form_columns = (
"id",
"file",
Expand All @@ -1269,6 +1270,7 @@ class InlineBillFileForm(InlineFormAdmin):
"file": {
"fields": ("title", "file_path"),
"page_size": 10,
"placeholder": 'Select a File',
},
}

Expand Down Expand Up @@ -1311,6 +1313,7 @@ class BillsView(MyModelView):
InlineBillFileForm(BillFile),
]
form_args = {

"events": {"widget": widgets.InlineBillEventsWidget()},
}

Expand Down

0 comments on commit f36d9a9

Please sign in to comment.