Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
radiopanik
panikdb
Commits
5f1e9840
Commit
5f1e9840
authored
Aug 25, 2013
by
fred
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
news category & episode can be empty
parent
fb2afd36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
panikdb/emissions/models.py
panikdb/emissions/models.py
+2
-2
No files found.
panikdb/emissions/models.py
View file @
5f1e9840
...
...
@@ -266,8 +266,8 @@ class NewsItem(models.Model):
image
=
models
.
ImageField
(
upload_to
=
get_newsitem_image_path
,
max_length
=
250
,
null
=
True
,
blank
=
True
)
tags
=
TaggableManager
(
blank
=
True
)
category
=
models
.
ForeignKey
(
'NewsCategory'
,
verbose_name
=
u
'Category'
,
null
=
True
)
emission
=
models
.
ForeignKey
(
'Emission'
,
null
=
True
)
category
=
models
.
ForeignKey
(
'NewsCategory'
,
verbose_name
=
u
'Category'
,
null
=
True
,
blank
=
True
)
emission
=
models
.
ForeignKey
(
'Emission'
,
null
=
True
,
blank
=
True
)
def
__unicode__
(
self
):
return
self
.
title
...
...
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