Django: Inherit Permssions from abstract models?
Posted
by lazerscience
on Stack Overflow
See other posts from Stack Overflow
or by lazerscience
Published on 2010-06-03T10:13:15Z
Indexed on
2010/06/05
19:22 UTC
Read the original article
Hit count: 369
Is it possible to inherit permissions from an abstract model in Django? I can not really find anything about that. For me this doesn't work!
class PublishBase(models.Model):
class Meta:
abstract = True
get_latest_by = 'created'
permissions = (('change_foreign_items',
"Can change other user's items"),)
EDIT: Not working means it fails silently. Permission is not created, as it wouldn't exist on the models inheriting from this class.
© Stack Overflow or respective owner