0001_initial.py 992 B

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.4 on 2016-12-30 02:58
  3. from __future__ import unicode_literals
  4. import django.core.validators
  5. from django.db import migrations, models
  6. class Migration(migrations.Migration):
  7. initial = True
  8. dependencies = [
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='Payment',
  13. fields=[
  14. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('amount', models.DecimalField(decimal_places=2, max_digits=9, verbose_name='Montant')),
  16. ('period', models.PositiveIntegerField(validators=[django.core.validators.MaxValueValidator(12)], verbose_name='Période')),
  17. ('payment_method', models.IntegerField(choices=[(0, 'Virement'), (1, 'Prélèvement')], verbose_name='Méthode de paiement')),
  18. ],
  19. options={
  20. 'verbose_name': 'paiement',
  21. },
  22. ),
  23. ]