Home | Trees | Indices | Help |
|
---|
|
Base Model design for publishing entries
|
|||
Meta | |||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
STATUS_CHOICES = DRAFT, _('draft'), (HIDDEN, _('hidden')), (PU
|
|||
title = models.CharField(_('title'), max_length= 255)
|
|||
image = models.ImageField(_('image'), upload_to= UPLOAD_TO, bl
|
|||
content = models.TextField(_('content'))
|
|||
excerpt = models.TextField(_('excerpt'), blank= True, help_tex
|
|||
tags = TagField(_('tags'))
|
|||
categories = models.ManyToManyField(Category, verbose_name= _(
|
|||
related = models.ManyToManyField('self', verbose_name= _('rela
|
|||
slug = models.SlugField(help_text= _('used for publication'),
|
|||
authors = models.ManyToManyField(User, verbose_name= _('author
|
|||
status = models.IntegerField(choices= STATUS_CHOICES, default=
|
|||
featured = models.BooleanField(_('featured'), default= False)
|
|||
comment_enabled = models.BooleanField(_('comment enabled'), de
|
|||
pingback_enabled = models.BooleanField(_('linkback enabled'),
|
|||
creation_date = models.DateTimeField(_('creation date'), defau
|
|||
last_update = models.DateTimeField(_('last update'), default=
|
|||
start_publication = models.DateTimeField(_('start publication'
|
|||
end_publication = models.DateTimeField(_('end publication'), h
|
|||
sites = models.ManyToManyField(Site, verbose_name= _('sites pu
|
|||
login_required = models.BooleanField(_('login required'), defa
|
|||
password = models.CharField(_('password'), max_length= 50, bla
|
|||
template = models.CharField(_('template'), max_length= 250, de
|
|||
_default_manager = <django.db.models.manager.Manager object at
|
|||
_meta = <Options for EntryAbstractClass>
|
|||
Inherited from |
|
|||
html_content Return the content correctly formatted |
|||
previous_entry Return the previous entry |
|||
next_entry Return the next entry |
|||
word_count Count the words of an entry |
|||
is_actual Check if an entry is within publication period |
|||
is_visible Check if an entry is visible on site |
|||
related_published_set Return only related entries published |
|||
discussions Return published discussions |
|||
comments Return published comments |
|||
pingbacks Return published pingbacks |
|||
trackbacks Return published trackbacks |
|||
short_url Return the entry's short url |
|||
Inherited from Inherited from |
|
Return entry's URL
|
|
STATUS_CHOICES
|
image
|
excerpt
|
categories
|
related
|
slug
|
authors
|
status
|
comment_enabled
|
pingback_enabled
|
creation_date
|
last_update
|
start_publication
|
end_publication
|
sites
|
login_required
|
password
|
template
|
_default_manager
|
|
html_contentReturn the content correctly formatted
|
previous_entryReturn the previous entry
|
next_entryReturn the next entry
|
word_countCount the words of an entry
|
is_actualCheck if an entry is within publication period
|
is_visibleCheck if an entry is visible on site
|
related_published_setReturn only related entries published
|
discussionsReturn published discussions
|
commentsReturn published comments
|
pingbacksReturn published pingbacks
|
trackbacksReturn published trackbacks
|
short_urlReturn the entry's short url
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Feb 22 09:38:53 2011 | http://epydoc.sourceforge.net |