Gitlab CSE Unil
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
M. Chardon
ADIM
Commits
6e7c7970
Commit
6e7c7970
authored
Apr 17, 2015
by
Julien Furrer
Browse files
fixed models definition
parent
6a320cf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
adim/models/annotables.py
View file @
6e7c7970
...
...
@@ -41,7 +41,7 @@ class AOType(models.Model):
class
AOSchema
(
BaseSchema
):
ao_types
=
models
.
ManyToManyField
(
AOType
,
blank
=
True
,
null
=
True
)
ao_types
=
models
.
ManyToManyField
(
AOType
,
blank
=
True
)
class
Meta
:
app_label
=
"adim"
...
...
@@ -99,7 +99,7 @@ class AnObj(BaseEntity):
sharing_opts
=
JSONField
(
verbose_name
=
_
(
"sharing options"
),
default
=
"{}"
,
blank
=
True
)
allow_public_publishing
=
models
.
BooleanField
(
verbose_name
=
_
(
"allow public publishing"
),
default
=
False
)
members
=
models
.
ManyToManyField
(
User
,
verbose_name
=
_
(
"members"
),
through
=
'AnObjMembership'
,
related_name
=
'shared_anobjs'
,
blank
=
True
,
null
=
True
)
related_name
=
'shared_anobjs'
,
blank
=
True
)
image
=
models
.
ImageField
(
upload_to
=
get_image_path
,
verbose_name
=
_
(
"image"
),
blank
=
True
,
null
=
True
)
image_url
=
models
.
CharField
(
max_length
=
512
,
verbose_name
=
_
(
"image url"
),
blank
=
True
,
null
=
True
,
default
=
""
)
...
...
Write
Preview
Supports
Markdown
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