#30346: InspectDB doesn't test for UUID (at least) on PostgreSQL
-------------------------------------+-------------------------------------
Reporter: guipedreira | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 2.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: inspectdb, | Triage Stage:
postgresql, uuid | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Description changed by guipedreira:
Old description:
> I was trying to do some reverse stuff...
> Importing models from a "Legacy" Database,
> as it turns out, inspectdb doesn't seem to go nicely with UUIDs,
> At least on PostgreSQL.
>
> {{{
> \d resource
>
> ------------+--------------------------+-----------+----------+---------
> id | uuid | | not null |
> name | character varying(255) | | not null |
> code | character varying(255) | | not null |
>
> }}}
>
> I've tried adding djago.contrib.postgres to installed apps, without luck.
>
> Am I missing something? Already tried --include-views and --include-
> partitions too.
>
> The error:
> {{
> # The error was: sequence index must be integer, not 'slice'
> }}
New description:
I was trying to do some reverse stuff...
Importing models from a "Legacy" Database,
as it turns out, inspectdb doesn't seem to go nicely with UUIDs,
At least on PostgreSQL.
{{{
\d resource
------------+--------------------------+-----------+----------+---------
id | uuid | | not null |
name | character varying(255) | | not null |
code | character varying(255) | | not null |
}}}
I've tried adding djago.contrib.postgres to installed apps, without luck.
Am I missing something? Already tried --include-views and --include-
partitions too.
The error:
{{{
# The error was: sequence index must be integer, not 'slice'
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30346#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.4a658739083d173c62fd088ca7ad959a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.