Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context fields visible in django admin edit page. #6

Closed
pyarun opened this issue Mar 28, 2013 · 1 comment
Closed

Context fields visible in django admin edit page. #6

pyarun opened this issue Mar 28, 2013 · 1 comment

Comments

@pyarun
Copy link

pyarun commented Mar 28, 2013

We can user template context variable in mail content, thats very good.
Can we some how display the context variables available for a given template in the edit page. This will help editor to use them without looking at the code that sends the mail.

I had a similar implementation where i added a field (context_variables) which displays the template variables available.
Problem with my application was that, editor may delete the values from there.
Some how we should set the permissions that if the editor is super_user, he can edit the field context_variables, for others this will be non-editable field.

@selwin
Copy link
Collaborator

selwin commented Mar 28, 2013

I'm not sure what you mean, context variables are only used during rendering when you pass them in via send_templated_mail and not stored anywhere in the database.

@selwin selwin closed this as completed Jun 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants