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
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
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
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...
>
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
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(
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
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
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
9 matches
Mail list logo