david / biologeek (http://biologeek.com/)

Source code of biologeek.com weblog under WTFPL.

Clone this repository (size: 252.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/biologeek

Changed (Δ91 bytes):

raw changeset »

biologeek/storages.py

journal/models.py (1 lines added, 4 lines removed)

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/', storage=ftp_storage, blank=True) 
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