Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Use lazy ugettext to avoid import loops
Browse files Browse the repository at this point in the history
Conflicts:

	etherpadlite/models.py
  • Loading branch information
rassie authored and leylaso committed Apr 23, 2012
1 parent 8cc7933 commit 5542345
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion etherpadlite/forms.py
@@ -1,5 +1,5 @@
from django import forms
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _

class PadCreate(forms.Form):
name = forms.CharField(label=_("Name"))
Expand Down
4 changes: 2 additions & 2 deletions etherpadlite/models.py
@@ -1,8 +1,8 @@
from django.db import models
from django.contrib.auth.models import User, Group
from django.db.models.signals import pre_delete
from django.utils.translation import ugettext as _

from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from py_etherpad import EtherpadLiteClient

class PadServer(models.Model):
Expand Down
2 changes: 1 addition & 1 deletion etherpadlite/views.py
Expand Up @@ -8,7 +8,7 @@
from django.template import RequestContext
from django.core.context_processors import csrf
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from py_etherpad import EtherpadLiteClient

@login_required(login_url='/etherpad')
Expand Down

0 comments on commit 5542345

Please sign in to comment.