diff options
Diffstat (limited to 'django/core/management/commands/inspectdb.py')
-rw-r--r-- | django/core/management/commands/inspectdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/inspectdb.py b/django/core/management/commands/inspectdb.py index 992c523a8e..3194aecacb 100644 --- a/django/core/management/commands/inspectdb.py +++ b/django/core/management/commands/inspectdb.py @@ -275,7 +275,7 @@ class Command(BaseCommand): if is_relation: if new_name.endswith("_id"): - new_name = new_name[:-3] + new_name = new_name.removesuffix("_id") else: field_params["db_column"] = col_name |