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

Use django’s JSONField #1271

Open
chris34 opened this issue Oct 1, 2023 · 2 comments
Open

Use django’s JSONField #1271

chris34 opened this issue Oct 1, 2023 · 2 comments

Comments

@chris34
Copy link
Member

chris34 commented Oct 1, 2023

Inyoka has a custom JSONField Basically, this will work.

However, Django offers nowadays an own JSONField:

Migrating to Django's one could save maintenance (in the longterm) and make queries easier. However, it is unclear, how much work it is to migrate.

@encbladexp
Copy link
Contributor

Does our own JSONField use the DB native column types, or just TEXT with a JSON in it?

@chris34
Copy link
Member Author

chris34 commented Oct 6, 2024

hm, seems like the line number where the class is located changed

class JSONField(models.TextField):

At the moment it's only a Textfield with Python's json.loads(s) and json.dumps(obj, cls=DjangoJSONEncoder).

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