L
L
LakeForest2020-11-22 23:40:22
Django
LakeForest, 2020-11-22 23:40:22

Django. How to get a list of values ​​from an external database when creating a custom command?

I'm new to Django... I didn't find how to solve the problem on the Internet...
I get an error:

CommandError: 'EquipmentTypes' object is not callable

5fbacae222bba039734669.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LakeForest, 2020-11-23
@LakeForest

Dr. Bacon Dr. Bacon , thanks for your reply.
It was necessary to remove the try: expect:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question