Re: Implementation of Object Permissions

2012-04-15 Thread Λlisue
Did you check my library ( django-permission: https://github.com/lambdalisue/django-permission )? which is not stable yet and has completely different approach to enable Object Permission in Django. I gave up database based object permission. If you have some article which is only visible for

Re: Implementation of Object Permissions

2012-04-15 Thread Aymeric Augustin
Hi Moritz, Thanks for your proposal! Here's my feedback. On 14 avr. 2012, at 01:56, Moritz S. wrote: > I found out about GenericRelations from the contenttypes framework. So you > could possibly use a single model called 'ObjectPermissions' or something and > link users, permissions and instanc

Re: QuerySet filtering weirdness for dates with 3-digit years

2012-04-15 Thread Aymeric Augustin
On 14 avr. 2012, at 21:25, Evan Carmi wrote: > >>> Poll.objects.filter(pub_date__year=1) #We should get the poll p (but we > >>> don't) > [] The docs [1] say that the __year lookup "takes a four digit year". I'm not sure what this means exactly for years < 1000! It looks like it's possible to

Re: QuerySet filtering weirdness for dates with 3-digit years

2012-04-15 Thread Aymeric Augustin
On 15 avr. 2012, at 00:28, Andy McKay wrote: > Which is this bug: http://bugs.python.org/issue1777412 FYI Django uses the django.utils.datetime_safe module to work around this problem when necessary. -- Aymeric. -- You received this message because you are subscribed to the Google Groups "Dj