doableware / djongo

Django and MongoDB database connector
https://www.djongomapper.com
GNU Affero General Public License v3.0
1.88k stars 353 forks source link

Receiving SQLDecodeError for migration #582

Open DavidMeu opened 2 years ago

DavidMeu commented 2 years ago

I'm trying to use djongo module. But after trying to migrate I'm receiving:

djongo.exceptions.SQLDecodeError:

        Keyword: None
        Sub SQL: None
        FAILED SQL: ('SELECT "openwisp_users_organizationuser"."created", "openwisp_users_organizationuser"."modified", "openwi
sp_users_organizationuser"."is_admin", "openwisp_users_organizationuser"."id", "openwisp_users_organizationuser"."organization_
id", "openwisp_users_organizationuser"."user_id" FROM "openwisp_users_organizationuser" WHERE ("openwisp_users_organizationuser
"."is_admin" AND "openwisp_users_organizationuser"."organization_id" = %(0)s) ORDER BY "openwisp_users_organizationuser"."creat
ed" ASC LIMIT 1',)
        Params: ((UUID('ba052935-7bd6-4262-9860-593d33f1934c'),),)
        Version: 1.3.6

Also for createsuperuser I recieve:

djongo.exceptions.SQLDecodeError:

        Keyword: None
        Sub SQL: None
        FAILED SQL: ('SELECT COUNT(*) AS "__count" FROM "account_emailaddress" WHERE ("account_emailaddress"."primary" AND "acc
ount_emailaddress"."user_id" = %(0)s)',)
        Params: ((UUID('d4d66e84-4a91-49eb-ad86-d35ad8556e41'),),)
        Version: 1.3.6
Django: 3.11.2
Djongo: 1.3.6
sqlparser: 0.2.4
jpmolinamatute commented 2 years ago

I'm having the exact same problem after I updated django and djongo