mirror of https://github.com/interlegis/sapl.git
Browse Source
* Adicionar novos campos no model Proposicao * Adicionar migrações * Adicionar novos widgets em ProposicaoForm * Salvar e apresentar dados - última edição * Identificar e salvar timezone * Salvar e apresentar dados - criaçãopull/2758/head
João Rodrigues
5 years ago
committed by
Cesar Carvalho
6 changed files with 254 additions and 111 deletions
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.11.20 on 2019-07-31 18:54 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.conf import settings |
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('materia', '0051_auto_20190703_1414'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='proposicao', |
|||
name='ip', |
|||
field=models.CharField(blank=True, default='', max_length=30, verbose_name='IP'), |
|||
), |
|||
migrations.AddField( |
|||
model_name='proposicao', |
|||
name='user', |
|||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='Usuário'), |
|||
), |
|||
] |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# Generated by Django 1.11.20 on 2019-07-31 22:26 |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('materia', '0052_auto_20190731_1554'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='proposicao', |
|||
name='ultima_edicao', |
|||
field=models.DateTimeField(blank=True, null=True, verbose_name='Data e Hora da Edição'), |
|||
), |
|||
] |
Loading…
Reference in new issue