{"id":16116285,"url":"https://github.com/frol/django-quering-jsonfield","last_synced_at":"2025-03-18T10:30:39.508Z","repository":{"id":139346619,"uuid":"1632231","full_name":"frol/django-quering-jsonfield","owner":"frol","description":"Querying on a Model's JSON Field","archived":false,"fork":false,"pushed_at":"2016-01-06T00:25:44.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-28T08:55:18.370Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frol.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-04-18T19:25:27.000Z","updated_at":"2018-04-16T08:20:35.000Z","dependencies_parsed_at":"2023-03-17T04:01:00.255Z","dependency_job_id":null,"html_url":"https://github.com/frol/django-quering-jsonfield","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Fdjango-quering-jsonfield","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Fdjango-quering-jsonfield/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Fdjango-quering-jsonfield/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frol%2Fdjango-quering-jsonfield/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frol","download_url":"https://codeload.github.com/frol/django-quering-jsonfield/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243918629,"owners_count":20368745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T20:21:56.424Z","updated_at":"2025-03-18T10:30:39.246Z","avatar_url":"https://github.com/frol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSONField with a hacky support for quering\n==========================================\n\nWARNING: It is not advised to use in a high-loaded projects!\n\nThere is a native django.contrib.postgres.fields.JSONField for Postgres (new in Django 1.9): https://docs.djangoproject.com/en/1.9/ref/contrib/postgres/fields/#querying-jsonfield\n\nThis module was tested on Django \u003e=1.4, \u003c=1.8.\n\nExample:\n    \n    class Person(models.Model):\n        ...\n        info = JSONField(default = {})\n\n        objects = JSONAwareManager(json_fields = ['info'])\n\n    ...\n\n    obj = Person.objects.create(name = \"Bill\")\n\n    obj.info = {\n        'sex': 'male',\n        'address': {\n            'city', 'Perth',\n            'country', 'Canada',\n            'planet', 'Earth',  \n        }\n    }\n\n    obj.save()\n\n    Person.objects.filter(info__address__country = 'Canada')\n\n    \u003e\u003e\u003e [Person: \"Bill\"]\n\n\nOriginal code was taken from: http://natebeacham.com/blog/nate-beacham/31/ (the original link is broken, but you can still have a look at the archived page http://web.archive.org/web/20100916231900/http://natebeacham.com/blog/nate-beacham/31/ )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrol%2Fdjango-quering-jsonfield","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrol%2Fdjango-quering-jsonfield","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrol%2Fdjango-quering-jsonfield/lists"}