Are you sure? Because now it throws a NameError exception.

global name 'gettext_lazy' is not defined

I must say I'm rather new to Python and haven't got the faintest idea
where to look when I get exceptions like this thrown at me.

This is what I import at the top of my model:

from django.core import meta
from datetime import datetime
from django.utils.translation import gettext_lazy

-janr

Reply via email to