Skip to content

Commit

Permalink
remove extra fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone committed Sep 8, 2023
1 parent b67ef5f commit 568a639
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion connect/api/v2/projects/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def create(self, validated_data):
"template_type_uuid": str(instance.project_template_type.uuid) if instance.project_template_type else None,
"timezone": str(instance.timezone),
"organization_id": instance.organization.inteligence_organization,
"extra_fields": instance.project_template_type.extra_fields if instance.is_template else {},
"extra_fields": self.context["request"].data.get("globals") if instance.is_template else {},
}

rabbitmq_publisher = RabbitmqPublisher()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 3.2.20 on 2023-09-08 18:03

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('template_projects', '0006_templatetype_extra_fields'),
]

operations = [
migrations.RemoveField(
model_name='templatetype',
name='extra_fields',
),
]
1 change: 0 additions & 1 deletion connect/template_projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class TemplateType(models.Model):
name = models.CharField(max_length=255, null=True, blank=True)
level = models.CharField(max_length=255, choices=level_field)
setup = models.JSONField(blank=True, null=True)
extra_fields = models.JSONField(blank=True, null=True)

photo = models.ImageField(storage=TemplateTypeImageStorage(), blank=True, null=True)
photo_description = models.TextField(blank=True, null=True)
Expand Down

0 comments on commit 568a639

Please sign in to comment.