Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BonVivens
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
groupe-bonvivens
BonVivens
Commits
57728b6a
Commit
57728b6a
authored
Oct 02, 2016
by
Amap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Historique des commandes
parent
7edec790
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
panier/admin.py
panier/admin.py
+1
-1
panier/migrations/0007_auto_20160930_2259.py
panier/migrations/0007_auto_20160930_2259.py
+20
-0
No files found.
panier/admin.py
View file @
57728b6a
...
...
@@ -8,7 +8,7 @@ from .models import Panier, Commande, Credit, Paiement, Livraison
class
PanierAdmin
(
VersionAdmin
):
list_display
=
(
'prix'
,
'nom'
)
class
CommandeAdmin
(
admin
.
Model
Admin
):
class
CommandeAdmin
(
Version
Admin
):
list_display
=
(
'user'
,
'quantite'
,
'prix_unitaire'
,
'nom'
,
'livre'
,
'date'
)
class
CreditAdmin
(
VersionAdmin
):
...
...
panier/migrations/0007_auto_20160930_2259.py
0 → 100644
View file @
57728b6a
# -*- 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
)]),
),
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment