Re: Admin customisation

2007-03-04 Thread Mohammad Tayseer
You can adjust the user permissions to have only 'mymodel | Can change message'. Beware that this can be adjusted for a single user, or a group of users. Superusers have all permissions (add/change/delete). - The fish are biting. Get more visitors on your site

Re: Admin customisation

2007-03-02 Thread James Bennett
On 3/2/07, Fes <[EMAIL PROTECTED]> wrote: > I have a model which has fields that have been set using a form. > However I would like to incorporate this model into the admin > interface. I would like to know if it is possible for this model to > only have the "Change" rights. For example when the u

Admin customisation

2007-03-02 Thread Fes
Hi, I have a model which has fields that have been set using a form. However I would like to incorporate this model into the admin interface. I would like to know if it is possible for this model to only have the "Change" rights. For example when the user is at the admin interface this model can

Re: Admin customisation

2007-02-23 Thread Django
Ok got it silly mistake it should have been 'mysite.project.threadlocals.ThreadLocals' not 'mysite.project.threadlocals' On Feb 23, 11:29 am, "Django" <[EMAIL PROTECTED]> wrote: > I've just attempted the first part using lukeplant's middleware. > However I am not getting the following error... >

Re: Admin customisation

2007-02-23 Thread Django
I've just attempted the first part using lukeplant's middleware. However I am not getting the following error... Traceback (most recent call last): File "c:\documents and settings\me\django_src\django\core\servers \basehttp.py", line 272, in run self.result = application(self.environ, self

Re: Admin customisation

2007-02-22 Thread Django
Thanks Picio! I'll give this a try. On Feb 22, 9:10 pm, Picio <[EMAIL PROTECTED]> wrote: > Sorry for the mistake: > > class myCustomizedMan(models.Manager): >def get_query_set(self): > userid=threadlocals.get_current_user().id > return > super(myCustomizedMan,self).get_query_set(

Re: Admin customisation

2007-02-22 Thread Picio
Sorry for the mistake: class myCustomizedMan(models.Manager): def get_query_set(self): userid=threadlocals.get_current_user().id return super(myCustomizedMan,self).get_query_set().filter(your_user__id__exact=userid) It was userid... ;) I'm tired! 2007/2/22, Picio <[EMAIL PROTECT

Re: Admin customisation

2007-02-22 Thread Picio
Yes It's but depending on the deisgn of your project, may be It's better to build a custom view inside tha admin (as the djangobook chapter 18 speaks). Anyway I do It this way: 1 - store the user id taken from a middleware from the superguru lukeplant http://lukeplant.me.uk/blog.php?id=110730163

Admin customisation

2007-02-22 Thread Django
Hi, Is it possible to customise the django admin so that it only displays certain objects depending on which user has logged in? For example I have a user linked to one or more subject models. Is it possible only to display the subjects which are linked to the user who is logged in in the admin i