#34690 closed New feature (wontfix)
Get ContentType object with table name in get_by_table_name method
Reported by: | Mostafa Rahnama | Owned by: | |
---|---|---|---|
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 , 16 months ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Summary: | Get ContentType object with table name → Get ContentType object with table name in get_by_table_name method |
comment:2 by , 16 months ago
Resolution: | fixed → wontfix |
---|
Note:
See TracTickets
for help on using tickets.
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.