Skip to content

fix ForeignKeyField is none when fk is integer 0 #1274#1275

Merged
long2ice merged 1 commit intotortoise:developfrom
liumuqing:develop
Oct 20, 2022
Merged

fix ForeignKeyField is none when fk is integer 0 #1274#1275
long2ice merged 1 commit intotortoise:developfrom
liumuqing:develop

Conversation

@liumuqing
Copy link
Contributor

Description

This PR fixes a bug in _fk_getter when fk is 0, similar to #1055

Motivation and Context

How Has This Been Tested?

I test case is added in this PR

Checklist:

  • [ x ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added the changelog accordingly.
  • [ x ] I have read the CONTRIBUTING document.
  • [ x ] I have added tests to cover my changes.
  • [ x ] All new and existing tests passed.

@long2ice long2ice merged commit 4548d1c into tortoise:develop Oct 20, 2022
@long2ice
Copy link
Member

Thanks!

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.

2 participants