-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set current date as default when creating an offer
- Loading branch information
1 parent
857d18e
commit 38214f0
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
offers/migrations/0003_set_offer_date_to_current_date_as_default.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 5.0 on 2024-03-19 12:59 | ||
|
||
import django.utils.timezone | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('offers', '0002_alter_offer_title'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='offer', | ||
name='begin_date', | ||
field=models.DateField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Fecha de inicio'), | ||
), | ||
migrations.AlterField( | ||
model_name='offer', | ||
name='end_date', | ||
field=models.DateField(blank=True, default=django.utils.timezone.now, null=True, verbose_name='Fecha de fin'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters