-
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.
Changed all status for delete endpoint and add null to photo_url fiel…
…d for pet
- Loading branch information
1 parent
7e3b160
commit 057aeb0
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
backend/apps/pet/migrations/0004_alter_pet_pet_photo_url.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,29 @@ | ||
# Generated by Django 5.0.1 on 2024-02-19 06:15 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("pet", "0003_pet_pet_key_pet_slug"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="pet", | ||
name="pet_photo_url", | ||
field=models.FileField( | ||
blank=True, | ||
null=True, | ||
upload_to="", | ||
validators=[ | ||
django.core.validators.FileExtensionValidator( | ||
allowed_extensions=["png", "jpg", "jpeg"] | ||
) | ||
], | ||
verbose_name="Pet photo", | ||
), | ||
), | ||
] |
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
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