Archived
saving any changes EOD Mon Mar 21 22
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 111 KiB |
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.3 on 2022-03-21 20:18
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('smugfolioapi', '0004_alter_smug_users_business_name'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='images',
|
||||
name='image_tags',
|
||||
field=models.ManyToManyField(through='smugfolioapi.Image_Tag_Assignments', to='smugfolioapi.image_tags'),
|
||||
),
|
||||
]
|
||||
@@ -1,7 +1,9 @@
|
||||
from django.db import models
|
||||
from smugfolioapi.models import image_tag_assignments, image_tags, Image_Tag_Assignments
|
||||
class Images(models.Model):
|
||||
|
||||
album_id = models.IntegerField(default=0)
|
||||
image_tags = models.ManyToManyField(image_tags.Image_Tags, through=Image_Tag_Assignments)
|
||||
smug_user = models.ForeignKey("Smug_Users", on_delete=models.CASCADE)
|
||||
upload_date = models.DateTimeField(auto_now_add=True)
|
||||
file_name = models
|
||||
|
||||
Reference in New Issue
Block a user