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
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
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
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
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
5 matches
Mail list logo