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-20 10:27:54 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9c8a7cc097edddf2a8b396124a49acd307271b2b
9c8a7cc0
1 parent
a9e24374
correcion en related_name
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
project/apps/edicto/migrations/0019_comprobantepago_archivo_alter_comprobantepago_edicto_and_more.py
project/apps/edicto/models.py
project/apps/edicto/migrations/0019_comprobantepago_archivo_alter_comprobantepago_edicto_and_more.py
View file @
9c8a7cc
# Generated by Django 4.1.9 on 2023-09-20 13:
01
# Generated by Django 4.1.9 on 2023-09-20 13:
27
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
...
...
@@ -7,6 +8,7 @@ import django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'edicto'
,
'0018_alter_edicto_fecha_modificacion'
),
]
...
...
@@ -42,6 +44,11 @@ class Migration(migrations.Migration):
field
=
models
.
IntegerField
(
editable
=
False
),
),
migrations
.
AlterField
(
model_name
=
'edicto'
,
name
=
'modificado_por'
,
field
=
models
.
ForeignKey
(
editable
=
False
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'update_edicto'
,
to
=
settings
.
AUTH_USER_MODEL
),
),
migrations
.
AlterField
(
model_name
=
'precio'
,
name
=
'vigencia_hasta'
,
field
=
models
.
DateField
(
blank
=
True
,
null
=
True
),
...
...
project/apps/edicto/models.py
View file @
9c8a7cc
...
...
@@ -38,7 +38,7 @@ class Edicto(models.Model):
observaciones
=
models
.
CharField
(
max_length
=
500
,
blank
=
True
,
null
=
True
)
fecha_creacion
=
models
.
DateField
(
auto_now_add
=
True
,
editable
=
False
)
fecha_modificacion
=
models
.
DateTimeField
(
auto_now
=
True
,
editable
=
False
)
modificado_por
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
related_name
=
'udate_edicto'
,
editable
=
False
)
modificado_por
=
models
.
ForeignKey
(
Usuario
,
on_delete
=
models
.
CASCADE
,
related_name
=
'u
p
date_edicto'
,
editable
=
False
)
class
Meta
:
verbose_name
=
'Edicto'
...
...
Please
register
or
login
to post a comment