Skip to content

Commit

Permalink
💚 FIX CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
stefrado committed Oct 31, 2024
1 parent bf989e2 commit 694098e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
16 changes: 10 additions & 6 deletions src/sdg/organisaties/migrations/0033_auto_20241022_1421.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@
class Migration(migrations.Migration):

dependencies = [
('organisaties', '0032_alter_links'),
("organisaties", "0032_alter_links"),
]

operations = [
migrations.AlterModelOptions(
name='lokatie',
options={'ordering': ('order', 'naam'), 'verbose_name': 'locatie', 'verbose_name_plural': 'locaties'},
name="lokatie",
options={
"ordering": ("order", "naam"),
"verbose_name": "locatie",
"verbose_name_plural": "locaties",
},
),
migrations.AddField(
model_name='lokatie',
name='order',
field=models.PositiveIntegerField(default=0, verbose_name='order'),
model_name="lokatie",
name="order",
field=models.PositiveIntegerField(default=0, verbose_name="order"),
),
]
18 changes: 14 additions & 4 deletions src/sdg/utils/templatetags/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,24 @@ def order_field(context, field=None, **kwargs):


@register.inclusion_tag("forms/location_form.html", takes_context=True)
def location_form(context,subform, initialOrder, **kwargs):
def location_form(context, subform, initialOrder, **kwargs):
print(subform)
return {"context":context, "subform": subform, "initialOrder": initialOrder, **kwargs}
return {
"context": context,
"subform": subform,
"initialOrder": initialOrder,
**kwargs,
}


@register.inclusion_tag("forms/organization_form.html", takes_context=True)
def organization_form(context,subform, initialOrder, **kwargs):
return {"context":context, "subform": subform, "initialOrder": initialOrder, **kwargs}
def organization_form(context, subform, initialOrder, **kwargs):
return {
"context": context,
"subform": subform,
"initialOrder": initialOrder,
**kwargs,
}


@register.inclusion_tag("forms/table_grid_field.html")
Expand Down

0 comments on commit 694098e

Please sign in to comment.