Content type returns this :ContentType matching query does not exist.

2011-06-23 Thread Satyajit Sarangi
ocal/lib/python2.6/dist-packages/django/db/models/ query.py" in get 349. % self.model._meta.object_name) Exception Type: DoesNotExist at /permissions/ Exception Value: ContentType matching query does not exist. what can be the error ? -- You received thi

Admin 404s on users and dumpdata error: ContentType matching query does not exist

2008-02-25 Thread diN0bot
yo, I'd like to update the "Admin 404s on users" and dumpdata error: ContentType matching query does not exist" for people who, like me, are searching the web for answers. >From the Admin 404s on users discussion (which I cannot seem to reply to, he

Re: ContentType matching query does not exist

2006-12-24 Thread Malcolm Tredinnick
On Sun, 2006-12-24 at 16:56 -0800, ad-hoc wrote: I've been playing with django. I'm trying to get the model with its name by: django.contrib.contenttypes.models.ContentType.objects.get(model=modelname) where modelname is a string, but i'm getting the exception/error as above. Using the admin

Re: ContentType matching query does not exist

2006-12-24 Thread [EMAIL PROTECTED]
You're going about this wrong. Model's have more than a name, and model isnt a field for ContentType. You want ContentType.objects.get_for_model I believe On Dec 25, 1:56 am, "ad-hoc" <[EMAIL PROTECTED]> wrote: I've been playing with django. I'm trying to get the model with its name by: django

ContentType matching query does not exist

2006-12-24 Thread ad-hoc
I've been playing with django. I'm trying to get the model with its name by: django.contrib.contenttypes.models.ContentType.objects.get(model=modelname) where modelname is a string, but i'm getting the exception/error as above. Using the admin interface i can see/add/update instances for the