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

Now the json field is only for viewing and printing. Automatic generation is needed. #139

Closed
1 task done
wnesbv opened this issue Apr 23, 2022 · 2 comments
Closed
1 task done

Comments

@wnesbv
Copy link

wnesbv commented Apr 23, 2022

Checklist

  • There are no similar issues or pull requests for this yet.

Is your feature related to a problem? Please describe.

There are:
class JSONField(fields.TextAreaField):
Necessary:
class JSONField(fields.FileField):

Describe the solution you would like.

In the web forms I have configured https://accent-starlette.github.io/starlette-files/handling_files/
file = sa.Column(FileType.as_mutable(sa.JSON), nullable=True)
views.py
The result is excellent
In the admin area of the coma

Describe alternatives you considered

Alternative solution: I have not found.

Additional context

Now the json field is only for viewing and printing. Automatic generation is needed.

@aminalaee
Copy link
Owner

Hey @wnesbv
Can you please explain what you mean by that? I don't really understand what you mean by "automatic generation".

@aminalaee
Copy link
Owner

We can re-open with more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants