0

I'm new to Django and in my first project I'm working with models that are related to each other.

While typing the autocomplete function of PyCharm suggested me ManyToManyField and ManyToManyRel. However, I couldn't find an answer that describes the exact differences between those classes and when to use which one.

Thanks for your help.

5t4cktr4c3
  • 151
  • 1
  • 10
  • See https://stackoverflow.com/questions/5216891/django-what-is-the-difference-rel-field – SaeX Apr 19 '21 at 08:00

1 Answers1

1

Please don´t use ManyToManyRel at a model. Django uses this kind of method for internal purpose.

If you create a model with a relationship, then use ManyToManyField. The ManyToManyRel is used for implementing the relationship at ManyToManyField

Klim Bim
  • 484
  • 2
  • 7