Discussion:
Issue with model method
(too old to reply)
Felix Lazaro Carbobonell
2018-12-10 14:05:16 UTC
Permalink
Good day to everyone.



I have defined a model method wich is called on a template (DTL) and the
result is None when I test the URI with selenium. Normal attributes from the
model are displayed correctly.

But when I test the same URI with the Django test client it works as
expected and the result from the model method is correctly rendered in the
template.



Could you please help me with this issue.



Best regards,

Felix Carbonell.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/018e01d49091%24608e8e80%2421abab80%24%40epepm.cupet.cu.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...