[Django] #24754: Implementation of global permissions

23 views
Skip to first unread message

Django

unread,
May 5, 2015, 3:21:21 PM5/5/15
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+--------------------
Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------
Right now, there are two ways of creating Permissions, either through a
Model's Meta class, or using the Permission.objects.create method. The
problem is, both of this ways require having the permission attached to a
model, even when sometimes it does not really make sense. There are ways
to work around this, of course, such as creating a dummy model just to
hold permissions that don't really fit anywhere or overriding the default
User model and fitting them there. Possible solutions I can think of are
either removing the mandatory ContentType specification on the Permission
model or providing a 'global' ContentType.

--
Ticket URL: <https://code.djangoproject.com/ticket/24754>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 5, 2015, 3:53:06 PM5/5/15
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+--------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by aaugustin):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Permissions were designed for the admin. It shows. I agree that it's an
unfortunate design and we should try to do better. I've faced this issue
repeatedly myself. In applications, not every concept is built upon a
Django model!

--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:1>

Django

unread,
May 5, 2015, 7:04:36 PM5/5/15
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by timgraham):

* version: 1.8 => master
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:2>

Django

unread,
Aug 7, 2015, 7:30:31 AM8/7/15
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by adamchainz):

* cc: me@… (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:3>

Django

unread,
Dec 30, 2017, 9:31:07 AM12/30/17
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Tim Graham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/9510 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:4>

Django

unread,
Dec 30, 2017, 12:23:45 PM12/30/17
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by felixxm):

* cc: felixxm (added)


--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:5>

Django

unread,
Dec 30, 2017, 3:10:05 PM12/30/17
to django-...@googlegroups.com
#24754: Implementation of global permissions
------------------------------+------------------------------------

Reporter: autrilla | Owner: nobody
Type: New feature | Status: new
Component: contrib.auth | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
------------------------------+------------------------------------
Changes (by Tim Graham):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/24754#comment:6>

Reply all
Reply to author
Forward
0 new messages