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
00f1fcf9
Commit
00f1fcf9
authored
Sep 30, 2016
by
Amap
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification des relations pour requests
parent
4159d9e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
amap/settings.py
amap/settings.py
+1
-1
users/migrations/0007_auto_20160930_2150.py
users/migrations/0007_auto_20160930_2150.py
+20
-0
users/models.py
users/models.py
+1
-1
No files found.
amap/settings.py
View file @
00f1fcf9
...
...
@@ -42,7 +42,7 @@ INSTALLED_APPS = (
'users'
,
'panier'
,
'amap'
,
#
'search',
'search'
,
'reversion'
)
...
...
users/migrations/0007_auto_20160930_2150.py
0 → 100644
View file @
00f1fcf9
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
from
django.conf
import
settings
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'users'
,
'0006_user_sac_consignes'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'request'
,
name
=
'user'
,
field
=
models
.
ForeignKey
(
to
=
settings
.
AUTH_USER_MODEL
),
),
]
users/models.py
View file @
00f1fcf9
...
...
@@ -190,7 +190,7 @@ class Request(models.Model):
)
type
=
models
.
CharField
(
max_length
=
2
,
choices
=
TYPE_CHOICES
)
token
=
models
.
CharField
(
max_length
=
32
)
user
=
models
.
ForeignKey
(
'User'
,
on_delete
=
models
.
PROTECT
)
user
=
models
.
ForeignKey
(
'User'
,
on_delete
=
models
.
CASCADE
)
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
,
editable
=
False
)
expires_at
=
models
.
DateTimeField
()
...
...
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