Uploaded image for project: 'Python Integrations'
  1. Python Integrations
  2. INTPYTHON-393

[Django] Revisit ObjectIdAutoField allowing int representation

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: django
    • None
    • Python Drivers

      Context

      `django_mongodb.fields.auto.ObjectIdAutoField` can take an int as a primary key (for the sake of passing tests in the django test suite). For now, this is fine, but we should explore possible alternatives that don't result in this datatype miscommunication.

      Definition of done

      Either change the AutoField naming to reflect its openness to accept Int, actively choose to ignore this and highlight it as a consequence of needing to "pass tests." or some other identified and scoped item.

      Pitfalls

      May not be possible given how we cannot influence the state of Django tests. 

            Assignee:
            Unassigned Unassigned
            Reporter:
            jib.adegunloye@mongodb.com Jib Adegunloye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: