add consulting partners
This commit is contained in:
parent
022f0ad60f
commit
ca251218e5
8 changed files with 261 additions and 9 deletions
|
@ -0,0 +1,50 @@
|
|||
# Generated by Django 5.1.5 on 2025-01-28 07:49
|
||||
|
||||
import services.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("services", "0006_service_slug"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name="ConsultingPartner",
|
||||
fields=[
|
||||
(
|
||||
"id",
|
||||
models.BigAutoField(
|
||||
auto_created=True,
|
||||
primary_key=True,
|
||||
serialize=False,
|
||||
verbose_name="ID",
|
||||
),
|
||||
),
|
||||
("name", models.CharField(max_length=200)),
|
||||
("slug", models.SlugField(unique=True)),
|
||||
("description", models.TextField(blank=True)),
|
||||
(
|
||||
"logo",
|
||||
models.ImageField(
|
||||
blank=True,
|
||||
null=True,
|
||||
upload_to="partner_logos/",
|
||||
validators=[services.models.validate_image_size],
|
||||
),
|
||||
),
|
||||
("website", models.URLField(blank=True)),
|
||||
("created_at", models.DateTimeField(auto_now_add=True)),
|
||||
("updated_at", models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="service",
|
||||
name="consulting_partners",
|
||||
field=models.ManyToManyField(
|
||||
blank=True, related_name="services", to="services.consultingpartner"
|
||||
),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue