Re: reuse of contrib.admin code for normal users

2006-06-17 Thread djx
wow! will have a go right away 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, sen

Re: reuse of contrib.admin code for normal users

2006-06-17 Thread Ian Holsman
on each poll add something like user = models.ForeignKey(User, null=True, blank=True) in the update/create views add something like if request.user.is_anonymous(): return redirect_to_login(request.path) try: poll = Poll.objects.get( id= id ) except Compa

reuse of contrib.admin code for normal users

2006-06-17 Thread djx
Hi, wishing to confirm if anyone has managed to do something similar. Using terms from the tutorial at www.djangoproject.com, i wish to - allow users (possibly upto 70 users) to create their own Polls/choices - but not (at least not easily) alter the Polls/choices that other users have created