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
thalia
concrexit
Commits
c4bdc69b
Verified
Commit
c4bdc69b
authored
Sep 19, 2018
by
Sébastiaan Versteeg
Browse files
Make url for push messages non-required
parent
8938e723
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/pushnotifications/migrations/0011_message_url.py
View file @
c4bdc69b
...
...
@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'message'
,
name
=
'url'
,
field
=
models
.
CharField
(
max_length
=
256
,
null
=
True
,
verbose_name
=
'url'
),
field
=
models
.
CharField
(
max_length
=
256
,
null
=
True
,
blank
=
True
,
verbose_name
=
'url'
),
),
]
website/pushnotifications/models.py
View file @
c4bdc69b
...
...
@@ -98,7 +98,8 @@ class Message(models.Model, metaclass=ModelTranslateMeta):
url
=
models
.
CharField
(
verbose_name
=
_
(
'url'
),
max_length
=
256
,
null
=
True
null
=
True
,
blank
=
True
,
)
category
=
models
.
ForeignKey
(
Category
,
...
...
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