Browse Source

Fix sigla in atendimento

Signed-off-by: Luciano Almeida <mdiebr@gmail.com>
pull/6/head
Luciano Almeida 8 years ago
parent
commit
a61c2a735b
  1. 10
      Dockerfile
  2. 34
      docker-compose.yml
  3. 2
      sigi/apps/casas/models.py
  4. 2
      sigi/apps/servidores/models.py

10
Dockerfile

@ -54,3 +54,13 @@ RUN easy_install pip
RUN pip2 install -r requirements/dev-requirements.txt RUN pip2 install -r requirements/dev-requirements.txt
RUN pip2 install --upgrade setuptools RUN pip2 install --upgrade setuptools
RUN mkdir -p /var/log/sigi/
RUN touch /var/log/sigi/application.log
RUN chmod -x /var/log/sigi/application.log
RUN git clone https://github.com/marinho/geraldo.git
WORKDIR /sigi/geraldo/
RUN python setup.py install
RUN cp -Rfv reporting geraldo `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
WORKDIR /sigi
RUN rm -rf geraldo/

34
docker-compose.yml

@ -1,20 +1,20 @@
localhost: #localhost:
image: postgres # image: postgres
environment: # environment:
POSTGRES_PASSWORD: sigi # POSTGRES_PASSWORD: sigi
POSTGRES_USER: sigi # POSTGRES_USER: sigi
POSTGRES_DB: sigi # POSTGRES_DB: sigi
ports: # ports:
- "5532:5432" # - "5532:5432"
web: #web:
build: . # build: .
command: bash -c "python manage.py bower install && python manage.py migrate && python manage.py runserver 0.0.0.0:8000" # command: bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
volumes: # volumes:
- .:/sigi # - .:/sigi
ports: # ports:
- "8000:8000" # - "8000:8000"
links: # links:
- localhost # - localhost
osticket: osticket:
image: campbellsoftwaresolutions/osticket image: campbellsoftwaresolutions/osticket

2
sigi/apps/casas/models.py

@ -243,7 +243,7 @@ class CasaLegislativa(models.Model):
return codigo return codigo
def __unicode__(self): def __unicode__(self):
return self.nome return self.nome + ' - ' + self.municipio.uf.sigla
def save(self, *args, **kwargs): def save(self, *args, **kwargs):
address_changed = False address_changed = False

2
sigi/apps/servidores/models.py

@ -63,7 +63,7 @@ class Servidor(models.Model):
) )
# usuario responsavel pela autenticação do servidor no sistema # usuario responsavel pela autenticação do servidor no sistema
user = models.ForeignKey(User, unique=True) user = models.OneToOneField(User, unique=True)
nome_completo = models.CharField(max_length=128) nome_completo = models.CharField(max_length=128)
apelido = models.CharField(max_length=50, blank=True) apelido = models.CharField(max_length=50, blank=True)
# caminho no sistema para arquivo com a imagem # caminho no sistema para arquivo com a imagem

Loading…
Cancel
Save