Commit 912389336b6e9716a30493b67ba2a62a05349651
1 parent
a3b64ac6
Exists in
master
and in
3 other branches
added translate function to forms on category
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
categories/forms.py
1 | from django import forms | 1 | from django import forms |
2 | from .models import Category | 2 | from .models import Category |
3 | 3 | ||
4 | +from django.utils.translation import ugettext_lazy as _ | ||
5 | + | ||
4 | class CategoryForm(forms.ModelForm): | 6 | class CategoryForm(forms.ModelForm): |
5 | class Meta: | 7 | class Meta: |
6 | model = Category | 8 | model = Category |