Opened 18 months ago

Closed 18 months ago

Last modified 18 months ago

#34690 closed New feature (wontfix)

Get ContentType object with table name in get_by_table_name method

Reported by: Mostafa Rahnama Owned by: rahnama7m@…
Component: contrib.contenttypes Version: 4.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

We can get the ContentType object with ID and natural key, But there is no support to get that object with the table name that is saved in the database.

Change History (2)

comment:1 by Mostafa Rahnama, 18 months ago

Resolution: fixed
Status: assignedclosed
Summary: Get ContentType object with table nameGet ContentType object with table name in get_by_table_name method

comment:2 by Mariusz Felisiak, 18 months ago

Resolution: fixedwontfix

Thanks for the ticket, however you can add such a helper in your own code there is no need to add it to Django itself.

Moreover, ticket should first be accepted by someone else, and it's not fixed when patch is not merged, check out docs.

Note: See TracTickets for help on using tickets.
Back to Top