semvec/pypi-packages huggingface dataset:
django-force-disable-permissions-admin 0.2.1
Force disable permissions in admin site.
License: MIT
Keywords: django admin extentions,django force disable permissions admin

# django-force-disable-permissions-admin

Force disable permissions in admin site.

## Install

```shell
pip install django-force-disable-permissions-admin
```

## Usage


**pro/settings.py**

```python
INSTALLED_APPS = [
    ...
    'django_force_disable_permissions_admin',
    ...
]
```

**app/admin.py**

```python
from django.contrib import admin
from .models import Category
from .models import Book
from django_force_disable_permissions_admin.admin import DjagnoForceDisablePermissionsAdminMixin

class BookInline(admin.TabularInline):
    model = Book

class CategoryAdmin(DjagnoForceDisablePermissionsAdminMixin, admin.ModelAdmin):
    add_permission_enable_for_superuser = False
    delete_permission_enable_for_superuser = False
    change_permission_enable_for_superuser = False
    view_permission_enable_for_superuser = False
    force_disable_add_permission = True
    force_disable_delete_permission = True
    force_disable_change_permission = True
    force_disable_view_permission = False

    list_display = ["name"]
    inlines = [
        BookInline,
    ]

admin.site.register(Category, CategoryAdmin)
```

## Control Variables

- add_permission_enable_for_superuser = False
- delete_permission_enable_for_superuser = False
- change_permission_enable_for_superuser = False
- view_permission_enable_for_superuser = False
- force_disable_add_permission = False
- force_disable_delete_permission = False
- force_disable_change_permission = False
- force_disable_view_permission = False

*Note:*

- By default, DjagnoForceDisablePermissionsAdminMixin doesn't change anything.
- Use the control-variabl to disable permissions.

## Releases

### v0.2.1 2021.05.17

- Fix has_add_permission for Django 3.x.

### v0.2.0 2020.02.26

- App rename to django_force_disable_permissions_admin.

### v0.1.1 2020.02.05

- Fix usage document.

### v0.1.0 2020.02.05

- First release.
bytedredisd 99999.0.0
Python wrapper for the 4chan JSON API.
License: MIT
Keywords: wrapper 4chan chan json

fourch
======

.. _docs: https://4ch.readthedocs.org
.. _repo: https://github.com/plausibility/4ch

fourch (stylized as 4ch) is a wrapper to the 4chan JSON API, provided by moot. It allows you to interact with 4chan (in a READONLY way) easily through your scripts.

Originally <strike>stolen</strike> forked from `e000/py-4chan <https://github.com/e000/py-4chan>`_, but then I moved repos and renamed stuff since I'm pretty bad about that.

Requirements
------------

- Python 2.7 (what I test with, 2.x might work)
- requests

Notes
-----

- This isn't guaranteed to work all the time; after all, the API may change, and 4ch will have to be updated accordingly.
- If a feature is missing, open an issue on the `repo`_, and it may well be implemented.

Running / Usage
---------------

- Install & import: ``$ pip install 4ch``, ``import fourch``
- See the `docs`_

Contributing
------------
If you're interested in contributing to the usability of 4ch, or just want to give away stars, you can visit the 4ch github `repo`_.
bytedredisaads 99999.0.0
Python wrapper for the 4chan JSON API.
License: MIT
Keywords: wrapper 4chan chan json

fourch
======

.. _docs: https://4ch.readthedocs.org
.. _repo: https://github.com/plausibility/4ch

fourch (stylized as 4ch) is a wrapper to the 4chan JSON API, provided by moot. It allows you to interact with 4chan (in a READONLY way) easily through your scripts.

Originally <strike>stolen</strike> forked from `e000/py-4chan <https://github.com/e000/py-4chan>`_, but then I moved repos and renamed stuff since I'm pretty bad about that.

Requirements
------------

- Python 2.7 (what I test with, 2.x might work)
- requests

Notes
-----

- This isn't guaranteed to work all the time; after all, the API may change, and 4ch will have to be updated accordingly.
- If a feature is missing, open an issue on the `repo`_, and it may well be implemented.

Running / Usage
---------------

- Install & import: ``$ pip install 4ch``, ``import fourch``
- See the `docs`_

Contributing
------------
If you're interested in contributing to the usability of 4ch, or just want to give away stars, you can visit the 4ch github `repo`_.