Z
Z
zilevsky2022-01-27 22:10:09
Django
zilevsky, 2022-01-27 22:10:09

How to get data from another model?

Good afternoon. Help me figure it out. There are two models in jung.

Users. With the fields "mob operator code" (981, 999, etc.) and "tag" (accounting, managers, etc.) Newsletter. With the same fields + additional fields for mailing settings.

I can't figure out how to send the list of specified fields in the user to the mailing list so that in the admin panel it would be possible to select already entered fields from the user when setting up the mailing list.

For example, we save the user with the operator code "999" and the tag "Accountant". We go to the mailing list settings and there in the same field we select the previously entered operator code "999" and the "Accountant" tag in the user.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
latush, 2022-01-27
@latush

read what is in filter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question