Skip to content

feat: django compatibility field name#2160

Open
waketzheng wants to merge 1 commit intotortoise:developfrom
waketzheng:develop
Open

feat: django compatibility field name#2160
waketzheng wants to merge 1 commit intotortoise:developfrom
waketzheng:develop

Conversation

@waketzheng
Copy link
Copy Markdown
Contributor

Description

There are some naming differences between Django and TortoiseORM:

# Django Tortoise
1 DateTimeField DatetimeField
2 DurationField TimeDeltaField
3 ForeignKey ForeignKeyField
4 IntegerField IntField
5 BigIntegerField BigIntField
6 SmallIntegerField SmallIntField

This PR creates aliases for them

Motivation and Context

Improve user experience

How Has This Been Tested?

Checklist:

  • 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.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 29, 2026

Merging this PR will not alter performance

✅ 24 untouched benchmarks


Comparing waketzheng:develop (eb2007e) with develop (95b004c)

Open in CodSpeed

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.

1 participant