Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-09-18 12:07:16 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6525067b8d880bc69f7a1ca77659f6d6b46c1727
6525067b
1 parent
f0909e95
cambios en el migrate
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
project/apps/edicto/migrations/0017_alter_edicto_fecha_modificacion.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0017_alter_edicto_fecha_modificacion.py
0 → 100644
View file @
6525067
# Generated by Django 4.1.9 on 2023-09-18 15:06
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'edicto'
,
'0016_remove_edicto_id_alter_edicto_uuid'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'edicto'
,
name
=
'fecha_modificacion'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
),
),
]
...
...
project/apps/edicto/models.py
View file @
6525067
...
...
@@ -36,8 +36,8 @@ class Edicto(models.Model):
cantidad_copias
=
models
.
PositiveIntegerField
(
blank
=
False
,
null
=
False
)
fecha_publicacion
=
models
.
DateField
(
blank
=
True
,
null
=
True
)
observaciones
=
models
.
CharField
(
max_length
=
500
,
blank
=
True
,
null
=
True
)
fecha_creacion
=
models
.
DateField
(
auto_now
=
True
,
editable
=
False
)
fecha_modificacion
=
models
.
DateTimeField
(
auto_now_add
=
True
,
editable
=
False
)
fecha_creacion
=
models
.
DateField
(
auto_now_add
=
True
,
editable
=
False
)
fecha_modificacion
=
models
.
DateTimeField
(
auto_now
=
True
,
editable
=
False
)
usuario_movimiento
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
related_name
=
'udate_edicto'
)
class
Meta
:
...
...
Please
register
or
login
to post a comment