mirror of https://gitlab.federez.net/re2o/re2o
20 changed files with 178 additions and 20 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,20 @@ |
|||||
from django.contrib import admin |
from django.contrib import admin |
||||
|
|
||||
# Register your models here. |
from .models import Facture, Article, Banque, Paiement |
||||
|
|
||||
|
class FactureAdmin(admin.ModelAdmin): |
||||
|
list_display = ('user','paiement','name', 'number', 'date') |
||||
|
|
||||
|
class ArticleAdmin(admin.ModelAdmin): |
||||
|
list_display = ('name','prix') |
||||
|
|
||||
|
class BanqueAdmin(admin.ModelAdmin): |
||||
|
list_display = ('name',) |
||||
|
|
||||
|
class PaiementAdmin(admin.ModelAdmin): |
||||
|
list_display = ('moyen',) |
||||
|
|
||||
|
admin.site.register(Facture, FactureAdmin) |
||||
|
admin.site.register(Article, ArticleAdmin) |
||||
|
admin.site.register(Banque, BanqueAdmin) |
||||
|
admin.site.register(Paiement, PaiementAdmin) |
||||
|
|||||
@ -0,0 +1,18 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0001_initial'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.RemoveField( |
||||
|
model_name='facture', |
||||
|
name='article', |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,20 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0002_remove_facture_article'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='banque', |
||||
|
field=models.ForeignKey(blank=True, to='cotisations.Banque', on_delete=django.db.models.deletion.PROTECT, null=True), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0003_auto_20160702_1448'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='name', |
||||
|
field=models.CharField(null=True, max_length=255), |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='prix', |
||||
|
field=models.DecimalField(max_digits=5, null=True, decimal_places=2), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,19 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0004_auto_20160702_1528'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='cheque', |
||||
|
field=models.CharField(max_length=255, blank=True), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0005_auto_20160702_1532'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='name', |
||||
|
field=models.CharField(null=True, default='plop', max_length=255), |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='prix', |
||||
|
field=models.DecimalField(null=True, decimal_places=2, default=1, max_digits=5), |
||||
|
), |
||||
|
] |
||||
@ -0,0 +1,26 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
from __future__ import unicode_literals |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('cotisations', '0006_auto_20160702_1534'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='name', |
||||
|
field=models.CharField(default='plop', max_length=255), |
||||
|
preserve_default=False, |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name='facture', |
||||
|
name='prix', |
||||
|
field=models.DecimalField(default=1, max_digits=5, decimal_places=2), |
||||
|
preserve_default=False, |
||||
|
), |
||||
|
] |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue