Re: How can users only edit their own files?
Hi Olive, I couldnt do that, anywhere I can find more help about that? the notes seem to be too difficult for me, I would need more help on those, coz I have two types of staff who do differnet things. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
Thanks Max & James, that did it. I was terrified and I couldnt do any work yesterday, I should have come back here soon after. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
On 4/30/06, layik <[EMAIL PROTECTED]> wrote: > How am I going to avoid this? I sign out from Django but I still can > see this: As Max said, your browser is probably caching that page; try clearing the cache (especially if you're using Opera, which has all kinds of problems with caching). Or, to put your mind at ease, try saving a change after you've logged out; Django should redirect you to a login page. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
layik wrote: > I am scared now Luke > > How am I going to avoid this? I sign out from Django but I still can > see this: > http://localhost:8000/admin/auth/users/4/ It was probably just a cached version of the page provided by your browser. Did you: Shift/Ctrl-Refresh (depends on browser/OS) the page? -- --Max Battcher-- http://www.worldmaker.net/ "I'm gonna win, trust in me / I have come to save this world / and in the end I'll get the grrrl!" --Machinae Supremacy, Hero (Promo Track) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
I am scared now Luke How am I going to avoid this? I sign out from Django but I still can see this: http://localhost:8000/admin/auth/users/4/ That is going to KILL my project! PLEASE help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
On Thursday 27 April 2006 16:27, Joseph Kocherhans wrote: > > The idea is that the user can only delete/edit/etc their own > > postings - anything else is denied. (This is obviously not for all > > users, there need to be admins, etc who can edit everyones files). > > The only way I can think of is setting up permission groups in > > Users and maybe overwriting delete()? I haven't tried it yet, was > > hoping someone with more mojo could shed some light. > > This should help, at least somewhat: > http://lukeplant.me.uk/blog.php?id=1107301634 Also, another hack I have used is to selectively override parts of the admin using the url configuration, by using regexes that match URLs that would otherwise go straight to an admin view, and putting them before the main 'admin' regex: urlpatterns = patterns('', (r'^admin/myapp/mymodel/add/$', 'my.special.wrapper.for.add_stage'), (r'^admin/myapp/mymodel/([^/]+)/$', 'my.special.wrapper.for.change_stage'), (r'^admin/', include('django.contrib.admin.urls')), ... 'my.special.wrapper' might wrap an existing admin view, or even duplicate large parts of it if necessary. Luke -- "I married Miss Right, I just didn't know her first name was 'Always'" Luke Plant || L.Plant.98 (at) cantab.net || http://lukeplant.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---
Re: How can users only edit their own files?
On 4/27/06, Norbert <[EMAIL PROTECTED]> wrote: > > I remember reading somewhere in the docs a while back that this was not > officially supported. Has this changed in MR, or has someone > implemented this with a hack or two? It's still not supported, and likely won't be until sometime after 1.0 is realeased. > The idea is that the user can only delete/edit/etc their own postings - > anything else is denied. (This is obviously not for all users, there > need to be admins, etc who can edit everyones files). The only way I > can think of is setting up permission groups in Users and maybe > overwriting delete()? I haven't tried it yet, was hoping someone with > more mojo could shed some light. This should help, at least somewhat: http://lukeplant.me.uk/blog.php?id=1107301634 And think about how custom managers might help for limiting what a user can see in a change list. (Filter what non-admins can see.) http://code.djangoproject.com/wiki/RemovingTheMagic#Custommanagersandmultiplemanagers Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~--~~~~--~~--~--~---