{{{
\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.
--
Ticket URL: <https://code.djangoproject.com/ticket/30346>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
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.
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:1>
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>
* status: new => closed
* resolution: => duplicate
* easy: 1 => 0
Comment:
This issue is not related with an UUID field. Django 2.2 doesn't support
`psycopg 2.8+`, it will be fixed in 2.2.1 release.
Duplicate of #30331.
--
Ticket URL: <https://code.djangoproject.com/ticket/30346#comment:3>