Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
django-wiki
Commits
cc31f07d
Commit
cc31f07d
authored
Nov 13, 2013
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
django 1.6 and #191 BooleanField now has NULL value
parent
d0ea9903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
wiki/models/article.py
+8
-2
No files found.
wiki/models/article.py
View file @
cc31f07d
...
...
@@ -228,8 +228,14 @@ class BaseRevisionMixin(models.Model):
# NOTE! The semantics of these fields are not related to the revision itself
# but the actual related object. If the latest revision says "deleted=True" then
# the related object should be regarded as deleted.
deleted
=
models
.
BooleanField
(
verbose_name
=
_
(
u'deleted'
))
locked
=
models
.
BooleanField
(
verbose_name
=
_
(
u'locked'
))
deleted
=
models
.
BooleanField
(
verbose_name
=
_
(
u'deleted'
),
default
=
False
,
)
locked
=
models
.
BooleanField
(
verbose_name
=
_
(
u'locked'
),
default
=
False
,
)
def
set_from_request
(
self
,
request
):
if
request
.
user
.
is_authenticated
():
...
...
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