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

Error when populating SQLite DATE field #24

Open
maramaraz opened this issue Aug 20, 2022 · 0 comments
Open

Error when populating SQLite DATE field #24

maramaraz opened this issue Aug 20, 2022 · 0 comments

Comments

@maramaraz
Copy link

Jetadmin correctly recognises SQLite DATE field as date and offers a calendar as means to fill the field. Yet, when I click the add button I get an error message stating that there is some incompatibility between SQLite DATE field and Python datetime object.

I solved a problem by adding the
{'query': 'DATE', 'operator': 'startswith', 'date_type': fields.DateTimeField},
to the data_types list in
jet-bridge/packages/jet_bridge_base/jet_bridge_base/serializers/model_serializer.py

Can you please patch the package?

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