* stage: Design decision needed => Accepted
Comment:
Seems like good changes to me.
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by derega):
I managed to write tests for the new functionality described in this
ticket.
https://github.com/derega/django/tree/ticket_10686
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:7>
* needs_docs: 0 => 1
Comment:
These changes also need to be documented.
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:8>
* owner: nobody => sergei-maertens
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:9>
Comment (by sergei-maertens):
I'm going to apply the patch to current master and add documentation
updates.
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:10>
* needs_docs: 1 => 0
Comment:
Applied the patch to current master and I've added documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:11>
* needs_better_patch: 0 => 1
Comment:
[https://groups.google.com/d/topic/django-
developers/imjaHrfk6Eo/discussion django-developers discussion] which
suggests to avoid the proposed `inherit_permissions` `Meta` option.
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:12>
Comment (by sergei-maertens):
I'm starting work on this again such that `inherit_permissions` is not
needed.
Models inheriting from abstract models inherit the `Meta`, so unless
permissions are being added in the concrete model, there is no boilerplate
required. In the event that the concrete class also has custom
permissions, the pythonic way is the way to go:
{{{
class Task(BaseTask):
...
class Meta(BaseTask.Meta):
permissions = BaseTask.Meta.permissions + (
('reassign_assignedtask', 'Can reassign assigned task')
)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:13>
Comment (by sergei-maertens):
Addition: it's not possible to inherit a concrete class' `Meta` per
https://docs.djangoproject.com/en/1.9/topics/db/models/#meta-and-multi-
table-inheritance
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:14>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/10686#comment:15>