mirror of
https://github.com/jeffknupp/sandman2.git
synced 2026-04-26 00:55:53 +03:00
[PR #35] [MERGED] Return key in Model.primary_key() #107
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
pull-request
question
refactoring
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sandman2-jeffknupp#107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jeffknupp/sandman2/pull/35
Author: @hroncok
Created: 4/25/2016
Status: ✅ Merged
Merged: 7/22/2016
Merged by: @jeffknupp
Base:
master← Head:patch-1📝 Commits (1)
c0f0b19Return key in Model.primary_key()📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
sandman2/model.py(+2 -2)📄 Description
If the column has different name than key, we need key, otherwise it doesn't work.
Consider the following column:
Name gets
id_lector, key getsid_teacher. With name, we get (formresouce_uri()):🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.