Use gettext_lazy
This commit is contained in:
1 parent
4b7952a6eb
commit
c935936ddc
2 files changed
+8
-8
No files matched your search
Vendored
+1
-1
@@ -12,7 +12,7 @@ def deploy(c):
|
||||
|
||||
c = Connection(host='gitdeploy@sega.neuf.no', gateway=Connection('login.neuf.no', user=proxy_user))
|
||||
|
||||
with c.cd(project_path), c.prefix('source {}/venv/bin/activate'.format(project_path)):
|
||||
with c.cd(project_path), c.prefix('source {}/.venv/bin/activate'.format(project_path)):
|
||||
c.run('git pull') # Get source
|
||||
c.run('pip install -U uv')
|
||||
c.run('uv sync') # install deps in virtualenv
|
||||
|
||||
+7
-7
@@ -1,11 +1,11 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from mdb.pxe import host_as_pxe_files
|
||||
|
||||
from mdb.validators import validate_hostname, validate_macaddr
|
||||
|
||||
import ipaddress
|
||||
import datetime
|
||||
import ipaddress
|
||||
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from mdb.pxe import host_as_pxe_files
|
||||
from mdb.validators import validate_hostname, validate_macaddr
|
||||
|
||||
|
||||
class Nameserver(models.Model):
|
||||
|
||||
Reference in new issue
Block a user