Re: Basic GenericForeignKey Question

2016-09-21 Thread TheBeardedTemplar
Hey Ludovic, I simplified things a lot to illustrate my particular issue, but our permission system is actually pretty complex - the permissions can apply to any individual object, and they are also hierarchical like those that would apply to a folder system. I found there were decent extension

Re: Basic GenericForeignKey Question

2016-09-21 Thread ludovic coues
Unrelated, do you have any reason to not reuse the existing django permission system ? 2016-09-21 16:41 GMT+02:00 TheBeardedTemplar : > Hey all, > > I'm just getting started with GenericForeignKeys and I've run into a small > point of confusion. I'm implementing a very general permission system as

Basic GenericForeignKey Question

2016-09-21 Thread TheBeardedTemplar
Hey all, I'm just getting started with GenericForeignKeys and I've run into a small point of confusion. I'm implementing a very general permission system as follows: class Permission(models.Model): """ This stores permissions for a single object. """ #These 3 fields are used to