Can I specify the name I want for the many to many table?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. See Table Names for all of the exciting details.
Update: OK, then perhaps the
related_nameoption is what you are looking for. There are some caveats covered here.Updatex2: OK, Kelvin gets a star for answering his own question! It’s been an age since I perused the Django Meta Model Options, but, in retrospect, that’s where we should have started.
BTW, wandering through the
django/db/code on only half a cup of coffee is definitely a challenge.