Comments (6)
PS: I'm trying this out with 1.7, but looking back through previous releases of Django, unique_together always has been a tuple?
from django-compositekey.
Hi,
please try with django 1.5.
Django support 1.6 and 1.7 is working in progress.
Django 1.6 has changed the ORM join part.
from django-compositekey.
Like I said, it appears to have always been a tuple, even with 1.5, thought you might like to know
from django-compositekey.
Got it, thanks.
Can you post a simple test to replicate the issue?
I'll add in the test suite.
from django-compositekey.
Now I remember, I wrote a couple of years ago in the wiki tha inspectdb is not supported yet.
https://github.com/simone/django-compositekey/wiki
Anyway, the append should be changed in a new tuple assignment
thanks for the feedback
from django-compositekey.
I have the same issue in MySql, only doing something similar to this
id = db.MultiFieldPK("author", "name")
from django-compositekey.
Related Issues (20)
- Some Pending Constraint for the new API fails
- Composite primary key generation/display of m2m join tables HOT 3
- DoesNotExist error raised when instantiating composite key model with no parameters HOT 2
- Django v1.5 - ImportError: cannot import name LHS_JOIN_COL HOT 3
- on update cascade HOT 2
- get related foreign key targets name and not attname HOT 1
- Naive assumption of "quote" function and "||" operator existence and behavour? HOT 3
- please can you put in https://pypi.python.org/pypi/django-compositekey the last version of branch 1.4.x ?? HOT 1
- package install off PyPI drops AUTHORS in current directory
- Django 1.6 and upcoming 1.7 compat HOT 16
- Support python3
- select_related and no field.rel.to HOT 1
- Legacy read-only DB with no primary key HOT 5
- ValueError: need more than 5 values to unpack HOT 1
- quantize result has too many digits for current context HOT 1
- Django 1.4 enabling compositekey breaks unrelated models HOT 1
- ImportError: cannot import name EmptyShortCircuit HOT 2
- C HOT 1
- Urgent Help: Trying to implement composite Primary Key - Got Below Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-compositekey.