Re: view permission for contrib.admin

2013-01-16 Thread Marc Aymerich
I also had to implement view permissions on admin, and in my opinion,
the worst thing of implementing full support for view permissions is
that you have to **copy&paste all the change_view and
changelist_view** just for changing one conditional:

if not self.has_change_permission(request, obj):
raise PermissionDenied

replace with:

# change_view
if not self.has_view_permission(request, obj):
raise PermissionDenied
if request.method == 'POST' and not self.has_change_permission(request, obj):
raise PermissionDenied

# changelist_view
if not self.has_view_permission(request, None):
raise PermissionDenied

So for me this is not one of those situations that you can say: oh if
you want it, just implement it on your own. Because doing so it's just
a mess.

br.

On Wed, Jan 16, 2013 at 8:13 AM, Jonas Obrist  wrote:
> For what it's worth is love to see this in core too.
>
> my use case was for DjangoCon Europe where admins were allowed to see ticket 
> info, but only "super admins" were allowed to change them as changes likely 
> had an impact on payments etc too (read PayPal). The solution was that 
> everyone had change/add permission, only super admins had delete perms. 
> Further I changed get_readonly_fields to mark everything read-only for 
> non-super admins. That was perfectly doable but was needlessly complicated in 
> my opinion.
>
> it could be solved in a third party app but I'd argue having this option by 
> default would be beneficial to lots of users.
>
> just my two cents...
>
> Jonas
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/django-developers/-/fPvFtNkTax4J.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-developers?hl=en.
>



-- 
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.



Re: [ANNOUNCE] Django 1.8 released

2015-04-03 Thread Marc Aymerich
On Wed, Apr 1, 2015 at 10:46 PM, Tim Graham  wrote:

> Django 1.8, the next long-term support release, is now available:
>
> https://www.djangoproject.com/weblog/2015/apr/01/release-18-final/
>
> With the release of Django 1.8, Django 1.6 has reached end-of-life. As
> such, Django 1.6.11 is the final release of the 1.6 series. Django 1.7 will
> continue to receive security updates until the release of Django 1.9 (planned
> for October 2015 ).
> Django 1.4 (the previous LTS) will receive security updates for another six
> months (ending October 1, 2015) to give time for users to upgrade to Django
> 1.8 LTS
>


Outstanding work guys !!
just upgraded my +40 apps project to 1.8 and everything went really
smoothly :)

-- 
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CA%2BDCN_uXzoKzt7AmEyXV757vCdSsZrnC18Xk1ogZKdnRRbzTYA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ANNOUNCE: Django 1.6 beta 1 released

2013-06-28 Thread Marc Aymerich
On Fri, Jun 28, 2013 at 3:48 PM, Jacob Kaplan-Moss  wrote:
> Hi folks --
>
> I'm pleased to announce that we've just released Django 1.6 beta 1,
> the second in our series of preview releases leading up to Django 1.6
> (due in August).
>
> More information can be found on our blog:
>
>
> https://www.djangoproject.com/weblog/2013/jun/28/django-16-beta-1-released/
>
> And in the release notes:
>
> https://docs.djangoproject.com/en/dev/releases/1.6/
>

Wow, lots of cool changes for the next release!
thank you guys for all the great effort !!


-- 
Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
For more options, visit https://groups.google.com/groups/opt_out.