Question about `_meta` API's naming

36 views
Skip to first unread message

Gyeong Hoe Koo

unread,
Feb 20, 2024, 10:15:43 AMFeb 20
to Django users
As the documentation says, Django's `_meta` API is core (https://docs.djangoproject.com/en/5.0/ref/models/meta/), but in my knowledge, APIs that start with `_` are private. Table names, etc. are one of the important APIs, and they seem to be pretty stable. Shouldn't we make them public instead of hiding them as private? Any idea why they are kept as `_meta`? I tried to search history on this decision but I cannot get any clues.

Thank you.

Jason

unread,
Feb 21, 2024, 10:01:17 PMFeb 21
to Django users
https://forum.djangoproject.com/ would be a better place to ask, FYI.

as far as why keep private... lets flip it around.  Why make it public?  what's the benefit of this change?

Having it private means that the API internals can change if necessary

Reply all
Reply to author
Forward
0 new messages