L
L
Larisa .•º2017-01-31 14:31:27
Django
Larisa .•º, 2017-01-31 14:31:27

How to replace the dictionary with Django tools?

Have a dictionary

FilterClassForest = {'oopt': oopt,
                     'forestry': 2,
                     'pollution': 3,
                     'pathology': 4,
                     'cpest': pest}

How can it be replaced by means of Django , maybe a class with a property?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Afonin, 2017-02-07
@reli

you can screw collections (implementation of the python itself), for example OrderedDict

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question