Skip to content

Commit

Permalink
add: some fricking spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed May 3, 2023
1 parent d6e52bd commit 52d4185
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion basxbread/contrib/customforms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,17 @@ def formview_processing(request, form, initial=None):

request.GET = GET
initial = initial or {}
formlayoutfields = []
for f in form.customformfields.all():
if "." in f.fieldname:
formlayoutfields.append(f.fieldname)
else:
formlayoutfields.append(
hg.DIV(layout.forms.FormField(f.fieldname), style="margin-top: 2rem")
)
return view_class._with(
model=model,
fields=[f.fieldname for f in form.customformfields.all()],
fields=formlayoutfields,
initial=initial,
).as_view()(request, **view_kwargs)

Expand Down

0 comments on commit 52d4185

Please sign in to comment.