{"id":22196714,"url":"https://github.com/druids/django-user-comments","last_synced_at":"2025-03-24T22:40:28.540Z","repository":{"id":45404067,"uuid":"157562173","full_name":"druids/django-user-comments","owner":"druids","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-18T23:58:12.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T02:14:16.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/druids.png","metadata":{"files":{"readme":"README.md","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":"2018-11-14T14:37:25.000Z","updated_at":"2021-12-15T14:25:49.000Z","dependencies_parsed_at":"2023-02-10T18:55:13.949Z","dependency_job_id":null,"html_url":"https://github.com/druids/django-user-comments","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fdjango-user-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fdjango-user-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fdjango-user-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/druids%2Fdjango-user-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/druids","download_url":"https://codeload.github.com/druids/django-user-comments/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245366207,"owners_count":20603438,"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-12-02T14:16:13.943Z","updated_at":"2025-03-24T22:40:28.503Z","avatar_url":"https://github.com/druids.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"User comments\n=============\n\nPrologue\n--------\n\nUser comments adds model for commenting django model instances for example in the administration. It's simpler version of django-contrib-comments\n\nPrerequisites\n-------------\n\n- django-chamber~=0.4.6\n\nInstallation\n------------\n\n```python\npip install django-user-comments\n```\n\nConfiguration\n-------------\n\nFor using django-user-comments you just add add ``user_comments`` to ``INSTALLED_APPS`` setting:\n\n```python\nINSTALLED_APPS = (\n    ...\n    'user_comments',\n    ...\n)\n```\n\nDjango-is-core\n--------------\n\nYou can use user comments with django-is-core framework:\n\n\n```python\nfrom is_core.main import UIRESTModelISCore\nfrom user_comments.contrib.is_core.cores import CommentISCoreMixin\n\n\nclass UserCore(CommentISCoreMixin, DjangoUiRestCore):\n\n    model = User\n    form_fieldsets = (\n         (None, {\n            'fields': 'username', 'first_name', 'last_name'\n         })\n    ) + CommentCoreMixin.notes_form_fieldset\n\n```\n\nThe CommentISCoreMixin only sets ``form_class`` attribute and contains ``notes_form_fieldset`` setting.\n\nIf you need change form of the core. You must extend from ``user_comments.contrib.is_core.cores.CommentUIForm``\n\n```python\nfrom user_comments.contrib.is_core.cores import CommentUiForm\n\ne\nclass UserForm(CommentUiForm):\n    ...\n\n\nclass UserCore(CommentCoreMixin, DjangoUiRestCore):\n\n    model = User\n    form_class = UserForm\n    form_fieldsets = (\n         (None, {\n            'fields': 'username', 'first_name', 'last_name'\n         })\n    ) + CommentCoreMixin.notes_form_fieldset\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fdjango-user-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdruids%2Fdjango-user-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdruids%2Fdjango-user-comments/lists"}