Browse Source

Retira código duplicado

Signed-off-by: Luciano Almeida <lucianoalmeida@interlegis.leg.br>
pull/1544/head
Luciano Almeida 7 years ago
parent
commit
58ba366cc5
  1. 5
      sapl/legacy/migration.py

5
sapl/legacy/migration.py

@ -163,11 +163,6 @@ def iter_sql_records(sql, db):
yield record yield record
def get_last_value(model):
last_value = model.objects.all().aggregate(Max('pk'))
return last_value['pk__max'] or 0
def save_relation(obj, nome_campo='', problema='', descricao='', def save_relation(obj, nome_campo='', problema='', descricao='',
eh_stub=False, critico=False): eh_stub=False, critico=False):
link = ProblemaMigracao( link = ProblemaMigracao(

Loading…
Cancel
Save