Commit 57728b6a authored by Amap's avatar Amap

Historique des commandes

parent 7edec790
......@@ -8,7 +8,7 @@ from .models import Panier, Commande, Credit, Paiement, Livraison
class PanierAdmin(VersionAdmin):
list_display = ('prix','nom')
class CommandeAdmin(admin.ModelAdmin):
class CommandeAdmin(VersionAdmin):
list_display = ('user', 'quantite', 'prix_unitaire', 'nom', 'livre', 'date')
class CreditAdmin(VersionAdmin):
......
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('panier', '0006_livraison_date_modif'),
]
operations = [
migrations.AlterField(
model_name='commande',
name='quantite',
field=models.PositiveIntegerField(validators=[django.core.validators.MinValueValidator(1)]),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment