Disregard. Odd issue with my ADMIN_MEDIA_PREFIX.
On Jul 15, 2:13 pm, Huuuze <[EMAIL PROTECTED]> wrote:
> When I click the button to add a new Person object (one of my objects,
> not the User object) in the admin interface, I receive the following
> error in my console window:
>
> ERROR: invalid input syntax for integer: "static_media/admin/js/
> core.js"
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person" WHERE
> "person_person"."id" = E'static_media/admin/js/core.js'
> ERROR: invalid input syntax for integer: "static_media/admin/js/
> core.js"
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person" WHERE
> "person_person"."id" = E'static_media/admin/js/core.js'
> ERROR: current transaction is aborted, commands ignored until end of
> transaction block
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person"
> [15/Jul/2008 17:57:54] "GET /admin/person/person/static_media/admin/js/
> core.js/ HTTP/1.1" 500 89312
> [15/Jul/2008 17:57:54] "GET /admin/person/person/static_media/admin/js/
> admin/RelatedObjectLookups.js HTTP/1.1" 301 0
> ERROR: invalid input syntax for integer: "static_media/admin/js/admin/
> RelatedObjectLookups.js"
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person" WHERE
> "person_person"."id" = E'static_media/admin/js/admin/
> RelatedObjectLookups.js'
> ERROR: invalid input syntax for integer: "static_media/admin/js/admin/
> RelatedObjectLookups.js"
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person" WHERE
> "person_person"."id" = E'static_media/admin/js/admin/
> RelatedObjectLookups.js'
> ERROR: current transaction is aborted, commands ignored until end of
> transaction block
> STATEMENT: SELECT "person_person"."id", "person_person"."first_name",
> "person_person"."last_name" FROM "person_person"
>
> The page still renders fine and the admin interface works, but it's
> odd that this error just started appearing. Any thoughts? For what
> it's worth, here is my Model and I'm using Postgresql:
>
> class Person(models.Model):
> first_name = models.CharField(max_length=30, blank=True,
> null=True)
> last_name = models.CharField(max_length=30, blank=True, null=True)
>
> def __unicode__(self):
> return ' '.join([self.first_name, self.last_name])
>
> class Admin:
> list_display = ('first_name', 'last_name')
--~--~---------~--~----~------------~-------~--~----~
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, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---