{"id":17172865,"url":"https://github.com/20tab/twentytab-sortable","last_synced_at":"2025-03-24T20:22:48.784Z","repository":{"id":13970126,"uuid":"16670712","full_name":"20tab/twentytab-sortable","owner":"20tab","description":"A django model and admin to create sortable items in django admin with jqueryui sortable method","archived":false,"fork":false,"pushed_at":"2015-02-06T11:24:35.000Z","size":481,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T14:19:20.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/20tab.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}},"created_at":"2014-02-09T17:03:03.000Z","updated_at":"2017-04-06T17:19:45.000Z","dependencies_parsed_at":"2022-07-31T16:48:56.388Z","dependency_job_id":null,"html_url":"https://github.com/20tab/twentytab-sortable","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Ftwentytab-sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Ftwentytab-sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Ftwentytab-sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/20tab%2Ftwentytab-sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/20tab","download_url":"https://codeload.github.com/20tab/twentytab-sortable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245344404,"owners_count":20599943,"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-14T23:48:26.966Z","updated_at":"2025-03-24T20:22:48.762Z","avatar_url":"https://github.com/20tab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"twentytab-sortable\n==================\n\nA django model and admin to create sortable items in django admin with jqueryui sortable method\n\n## Installation\n\nUse the following command: \u003cb\u003e\u003ci\u003epip install twentytab-sortable\u003c/i\u003e\u003c/b\u003e\n\n## Configuration\n\n- Settings.py\n\nOpen settings.py and add sortable to your INSTALLED_APPS:\n\n```py\nINSTALLED_APPS = [\n    ...\n    'sortable',\n    ...\n]\n```\n\n- Static files\n\nRun collectstatic command or map static directory.\n\n## Usage\n- models.py\n\n```py\nfrom sortable.models import PositionModel\n\n\nclass MyPositionModel(PositionModel):\n    pass\n\n```\n\n- admin.py\n\n```py\nfrom django.contrib import admin\nfrom myapp.models import MyPositionModel\nfrom sortable.admin import PositionAdmin, SortableTabularInline, SortableStackedInline\n\nclass MyTabularInline(SortableTabularInline):\n    # add 'position' in your fields\n    model = APositionModel\n\nclass MyStackedInline(SortableStackedInline):\n    # add 'position' in your fields\n    model = APositionModel\n\nclass MyPositionAdmin(PositionAdmin):\n    inlines = [MyTabularInline, MyStackedInline]\n    # add 'position' in your list_editable fields\n\nadmin.site.register(MyPositionModel, MyPositionAdmin)\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Ftwentytab-sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F20tab%2Ftwentytab-sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F20tab%2Ftwentytab-sortable/lists"}