Commit df2daae8 authored by Leonardo Alexandre Ferreira Leite's avatar Leonardo Alexandre Ferreira Leite
Browse files

Merge branch 'fix/536' into 'master'


See merge request !552
parents 098fc1bf 12d9133e
Pipeline #414116231 passed with stages
in 11 minutes and 36 seconds
......@@ -157,3 +157,23 @@ Para executar os testes com linters:
`$ make linter` ou `$ make linter L=shellcheck`
`$ make linter L=http_link`
## 7. Criando e executando migrations
Após alterar algum model, rode os comandos
`$ make iniciar`
`$ make makemigrations`
Após gerar o arquivo da migration, pare a execução e inicie novamente:
`$ make parar`
`$ make iniciar`
E as alterações da nova migration terão sido aplicadas na base.
\ No newline at end of file
......@@ -123,7 +123,8 @@ class Partido(models.Model):
'Republican.': 'REP',
'SDD': 'SD',
nome_partido = nome_partido.upper().replace(' ', '')
nome_partido = trocar.get(nome_partido, nome_partido)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment