Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Details page not respecting the format I am passing #871

Open
2 tasks done
PyAntony opened this issue Jan 13, 2025 · 0 comments
Open
2 tasks done

Details page not respecting the format I am passing #871

PyAntony opened this issue Jan 13, 2025 · 0 comments

Comments

@PyAntony
Copy link

Checklist

  • The bug is reproducible against the latest release or master.
  • There are no similar issues or pull requests to fix it yet.

Describe the bug

Hi,

I am passing a custom formatter for the Details page like this:

# field1 is a dictionary
column_formatters_detail = {"column1": lambda m, a: json.dumps(m.field1, indent=4)}

However, when I go to the details page that formatting (pretty json) is not there, it still appears as a single json line. Is this a bug? How can I correct this without having to alter the templates? (no html). Is it possible to do it with WTForms?

Steps to reproduce the bug

No response

Expected behavior

No response

Actual behavior

No response

Debugging material

No response

Environment

OS: Ubuntu 22.04
Python3.11
sqladmin version = 0.20.1

Additional context

No response

@PyAntony PyAntony changed the title View page not respecting the format I am passing Details page not respecting the format I am passing Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant