Skip to content

Commit

Permalink
converted urlfield to string in asset.template_url to allow to "self"
Browse files Browse the repository at this point in the history
  • Loading branch information
alesanchezr committed Dec 9, 2024
1 parent fdf3f04 commit e1039fc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
2 changes: 1 addition & 1 deletion breathecode/authenticate/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from capyc.core.managers import feature

flags = feature.flags
flags = feature._flags


@feature.availability("authenticate.set_google_credentials")
Expand Down
2 changes: 1 addition & 1 deletion breathecode/payments/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from breathecode.registry.models import Asset
from breathecode.utils.decorators.consume import ServiceContext

flags = feature.flags
flags = feature._flags


@feature.availability("payments.bypass_consumption")
Expand Down
24 changes: 24 additions & 0 deletions breathecode/registry/migrations/0053_alter_asset_template_url.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 5.1.1 on 2024-12-09 23:36

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("registry", "0052_assettechnology_marketing_information"),
]

operations = [
migrations.AlterField(
model_name="asset",
name="template_url",
field=models.CharField(
blank=True,
default=None,
help_text="This template will be used to open the asset (only applied for projects). If project has no template it should state 'self' as template url",
max_length=500,
null=True,
),
),
]

0 comments on commit e1039fc

Please sign in to comment.