| commit 65: | 784cab145272 |
| parent 64: | 9eac043c46c6 |
| branch: | default |
Remove ftp storage support for now
19 months ago
Changed (Δ91 bytes):
Up to file-list journal/models.py:
| … | … | @@ -9,13 +9,10 @@ from django.contrib.markup.templatetags. |
9 |
9 |
from tagging.models import Tag |
10 |
10 |
from tagging.fields import TagField |
11 |
11 |
from biologeek.utils import flush_cache_url |
12 |
from biologeek.storages import FTPStorage |
|
13 |
12 |
|
14 |
13 |
MARKDOWN_SYNTAX = 'Syntaxe <a href="http://daringfireball.net/projects/markdown/syntax/"'\ |
15 |
14 |
'title="Accès à la syntaxe">markdown</a>' |
16 |
15 |
|
17 |
ftp_storage = FTPStorage() |
|
18 |
||
19 |
16 |
class PostManager(models.Manager): |
20 |
17 |
def get_query_set(self): |
21 |
18 |
""" Retrieve only published posts. """ |
| … | … | @@ -46,7 +43,7 @@ class Post(models.Model): |
46 |
43 |
modification_date = models.DateTimeField('Date de modification', null=True, blank=True) |
47 |
44 |
publication_date = models.DateTimeField('Date de publication', null=True, blank=True) |
48 |
45 |
|
49 |
image = models.ImageField('Image associée', upload_to='images/logos/', |
|
46 |
image = models.ImageField('Image associée', upload_to='images/logos/', blank=True) |
|
50 |
47 |
is_online = models.BooleanField('En ligne', default=False) |
51 |
48 |
is_bestof = models.BooleanField('Best of', default=False) |
52 |
49 |
