- Remove deposit_percent field (doesn't work for variable pricing) - Make deposit_amount default to 0 (no deposit) - Deposit now applies to both variable and fixed pricing services - Add requires_deposit and requires_saved_payment_method as computed properties - Simplify frontend form with single deposit amount input - Show deposit badge in service list when deposit > 0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
878 B
Python
29 lines
878 B
Python
# Generated by Django 5.2.8 on 2025-12-04 18:40
|
|
|
|
import django.core.validators
|
|
from decimal import Decimal
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('schedule', '0025_add_variable_pricing'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='service',
|
|
name='deposit_percent',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='service',
|
|
name='requires_saved_payment_method',
|
|
),
|
|
migrations.AlterField(
|
|
model_name='service',
|
|
name='deposit_amount',
|
|
field=models.DecimalField(decimal_places=2, default=Decimal('0.00'), help_text='Deposit amount to collect at booking (0 = no deposit)', max_digits=10, validators=[django.core.validators.MinValueValidator(Decimal('0'))]),
|
|
),
|
|
]
|