{"id":20758012,"url":"https://github.com/qu4tro/rest_framework_mixins","last_synced_at":"2026-04-22T01:31:35.049Z","repository":{"id":65893580,"uuid":"601813964","full_name":"Qu4tro/rest_framework_mixins","owner":"Qu4tro","description":"A collection of DRF mixins combinations","archived":false,"fork":false,"pushed_at":"2023-12-10T01:23:02.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T21:01:57.340Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qu4tro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-14T21:58:19.000Z","updated_at":"2023-02-14T22:03:32.000Z","dependencies_parsed_at":"2025-03-04T21:01:40.687Z","dependency_job_id":"b742fb5e-8f71-4729-afa7-6488306ef47b","html_url":"https://github.com/Qu4tro/rest_framework_mixins","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/Qu4tro%2Frest_framework_mixins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qu4tro%2Frest_framework_mixins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qu4tro%2Frest_framework_mixins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qu4tro%2Frest_framework_mixins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qu4tro","download_url":"https://codeload.github.com/Qu4tro/rest_framework_mixins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243067534,"owners_count":20230945,"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-11-17T09:48:29.587Z","updated_at":"2025-12-25T01:38:21.320Z","avatar_url":"https://github.com/Qu4tro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rest-framework-mixins\n\n## Installation\n\n`pip install rest_framework_mixins`\n\n## Usage\n\nThis package provides all combinations of the mixins provided by rest_framework.  \nAll combinations follow the same format: `{initials}Mixin.\n\nThe initials correspond to the following methods, in this specific order:\n\n- L: `list()`  \n- R: `retrieve()`  \n- C: `create()`  \n- U: `update()`  \n- P: `partial_update()`  \n- D: `delete()`  \n\nSo for example, to import a mixin that gives us list, retrieve and create,\nwe can do the following:\n\n```\nfrom rest_framework_mixins import LRCMixin\n\nclass CreateListRetrieveViewSet(LRCMixin, viewsets.GenericViewSet):\n    \"\"\"\n    A viewset that provides `retrieve`, `create`, and `list` actions.\n\n    To use it, override the class and set the `.queryset` and\n    `.serializer_class` attributes.\n    \"\"\"\n    pass\n```\n\n\u003e Adapted from [DRF's documentation](https://www.django-rest-framework.org/api-guide/viewsets/#example_3)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqu4tro%2Frest_framework_mixins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqu4tro%2Frest_framework_mixins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqu4tro%2Frest_framework_mixins/lists"}