Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreign key information on row and table pages #118

Merged
merged 3 commits into from
Nov 18, 2017
Merged

Foreign key information on row and table pages #118

merged 3 commits into from
Nov 18, 2017

Conversation

simonw
Copy link
Owner

@simonw simonw commented Nov 18, 2017

No description provided.

Simon Willison added 3 commits November 17, 2017 10:14
If a table has foreign key columns, and those foreign key tables have
label_columns, the TableView will now query those other tables for the
corresponding values and display those values as links in the corresponding
table cells.

label_columns are currently detected by the inspect() function, which looks
for any table that has just two columns - an ID column and one other - and
sets the label_column to be that second non-ID column.
@simonw simonw merged commit 1b04662 into master Nov 18, 2017
@simonw simonw deleted the foreign-keys branch November 18, 2017 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant