Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
interfect
funkwhale
Commits
314765de
Verified
Commit
314765de
authored
Oct 01, 2018
by
Eliot Berriot
Browse files
Fix #546: Ensure from_activity field is not required in django's admin
parent
1aa9b557
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/funkwhale_api/music/models.py
View file @
314765de
...
...
@@ -41,7 +41,7 @@ class APIModelMixin(models.Model):
mbid
=
models
.
UUIDField
(
unique
=
True
,
db_index
=
True
,
null
=
True
,
blank
=
True
)
uuid
=
models
.
UUIDField
(
unique
=
True
,
db_index
=
True
,
default
=
uuid
.
uuid4
)
from_activity
=
models
.
ForeignKey
(
"federation.Activity"
,
null
=
True
,
on_delete
=
models
.
SET_NULL
"federation.Activity"
,
null
=
True
,
blank
=
True
,
on_delete
=
models
.
SET_NULL
)
api_includes
=
[]
creation_date
=
models
.
DateTimeField
(
default
=
timezone
.
now
)
...
...
changes/changelog.d/546.enhancement
0 → 100644
View file @
314765de
Ensure from_activity field is not required in django's admin (#546)
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