Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: removed commented code and extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zubair-ce07 committed Sep 11, 2023
1 parent 814d5aa commit 499cc75
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,6 @@ class Migration(migrations.Migration):
name='meta_title',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Meta title'),
),
# migrations.AddField(
# model_name='option',
# name='help_text',
# field=models.CharField(blank=True, help_text='Help text shown to the user on the add to basket form', max_length=255, null=True, verbose_name='Help text'),
# ),
# migrations.AddField(
# model_name='option',
# name='option_group',
# field=models.ForeignKey(blank=True, help_text='Select an option group if using type "Option" or "Multi Option"', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='product_options', to='catalogue.attributeoptiongroup', verbose_name='Option Group'),
# ),
# migrations.AddField(
# model_name='option',
# name='order',
# field=models.IntegerField(blank=True, db_index=True, help_text='Controls the ordering of product options on product detail pages', null=True, verbose_name='Ordering'),
# ),
# migrations.AddField(
# model_name='option',
# name='required',
# field=models.BooleanField(default=False, verbose_name='Is this option required?'),
# ),
migrations.AddField(
model_name='product',
name='meta_description',
Expand Down Expand Up @@ -116,16 +96,6 @@ class Migration(migrations.Migration):
name='value_boolean',
field=models.BooleanField(blank=True, db_index=True, null=True, verbose_name='Boolean'),
),
# migrations.AlterField(
# model_name='option',
# name='name',
# field=models.CharField(db_index=True, max_length=128, verbose_name='Name'),
# ),
# migrations.AlterField(
# model_name='option',
# name='type',
# field=models.CharField(choices=[('text', 'Text'), ('integer', 'Integer'), ('boolean', 'True / False'), ('float', 'Float'), ('date', 'Date'), ('select', 'Select'), ('radio', 'Radio'), ('multi_select', 'Multi select'), ('checkbox', 'Checkbox')], default='text', max_length=255, verbose_name='Type'),
# ),
migrations.AlterField(
model_name='product',
name='slug',
Expand Down
2 changes: 1 addition & 1 deletion ecommerce/extensions/catalogue/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class Option(AbstractOption):
# Do not record the code field in the history table because AutoSlugField is not compatible with
# django-simple-history. Background: https://github.com/openedx/course-discovery/pull/332
history = CreateSafeHistoricalRecords(excluded_fields=['code'])
OPTIONAL = 'Optional'
OPTIONAL = 'Optional'


class ProductClass(AbstractProductClass):
Expand Down

0 comments on commit 499cc75

Please sign in to comment.