Hi.

I'd ask about  "models.E026: The model cannot have more than one field with 
primary_key=True".
It's not a true. The table or view *can* have more than one *column* as a 
part of a primary key.
It's pretty common, when you have views with cross joins or unpivots.

I can add models.E026 to silenced system checks, but Django is mapping PK 
to the first field of the complex primary keys. This can introduce some 
issues.

I know that supporting complex PKs is hard and generally unsupported, but 
how about removing auto-mapping ".pk" attribute for models with complex 
primary key
As a result there will be no possibility to declare foreign keys to such 
models, but there will be possibility to change E026to W0nn (just a 
warning).

Regards,
Marcin

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/7b948901-e643-4bd0-917a-54ff7a18e9f9%40googlegroups.com.

Reply via email to