AttributeError: 'NoneType' object has no attribute 'replace'

90 views
Skip to first unread message

Abnilson Rafael

unread,
Feb 23, 2021, 12:19:30 PM2/23/21
to Django users
Hi,
I'm getting error above when I try to this program:
Screenshot from 2021-02-23 18-52-17.png

I tried to search nearly everywhere for solution, but I can't find

Kasper Laudrup

unread,
Feb 23, 2021, 2:08:44 PM2/23/21
to django...@googlegroups.com
On 23/02/2021 17.56, Abnilson Rafael wrote:
> Hi,
> I'm getting error above when I try to this program:

The get_language() member function/method of your "translation"
object/variable doesn't return anything and you most likely expect it to
return a string.

Try to figure out how that could happen and you'll most likely have the
solution.

Hard to help you any further without knowing anything about what you are
trying to achieve.

Kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages