- changed status to open
recipients are not set in the url 'postman:write'
According to the documentation:
<a href="{% url 'postman:write' 'adm1:adm2:adm3' %}">write to admins</a>.
I traversed the process using a debugger. the initials are passed to the form, but the field, that is 'CommaSeparatedUserField', ignores the passed initials and nothing is set on the page.
Comments (4)
-
repo owner -
reporter apologies for taking a while. I’m using: Django 4.2 and postman version 4.3.2. To me it seems like the problem is that when using a model form, you can’t a dictionary of initials to it and instead you’d need to pass in an instance. I don’t know if it’s always been like that but that seems to be the problem as the list of recipients is passed under the initials kwarg.
-
repo owner I don’t understand what you are calling ‘an instance’, in opposition to a dictionary. If you’re taking about ‘initials’ as in https://docs.djangoproject.com/en/4.2/ref/class-based-views/mixins-editing/, it has always been a dictionary.
-
repo owner - changed status to closed
No activity.
- Log in to comment
In the example, 'adm1' and others are supposed to be real User.USERNAME_FIELD values, so matching with real users, and with is_active at true.
Can you check that? Otherwise, please give more details/material to investigate.