blogs Package

activity Module

class kawaz.apps.blogs.activity.EntryActivityMediator[ソース]

ベースクラス: activities.mediator.ActivityMediator

alter(instance, activity, **kwargs)[ソース]
prepare_context(activity, context, typename=None)[ソース]

admin Module

class kawaz.apps.blogs.admin.EntryAdmin(model, admin_site)[ソース]

ベースクラス: django.contrib.admin.options.ModelAdmin

author_nickname(obj)[ソース]
list_display = ('title', 'author_nickname', 'get_pub_state_display', 'star_count', 'created_at', 'updated_at')
media
search_fields = ('title', 'body', 'author__username', 'author__nickname', 'category__label')
star_count(obj)[ソース]

forms Module

models Module

class kawaz.apps.blogs.models.Category(*args, **kwargs)[ソース]

ベースクラス: django.db.models.base.Model

ブログが所属するカテゴリーモデル

カテゴリーは各ユーザーがそれぞれ所有するもので、自身のブログの整理に利用する 目的で存在する。

exception DoesNotExist

ベースクラス: django.core.exceptions.ObjectDoesNotExist

exception Category.MultipleObjectsReturned

ベースクラス: django.core.exceptions.MultipleObjectsReturned

Category.author

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

Category.author_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Category.entries

Accessor to the related objects manager on the reverse side of a many-to-one relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

parent.children is a ReverseManyToOneDescriptor instance.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

Category.get_absolute_url()[ソース]
Category.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Category.label

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Category.objects = <django.db.models.manager.Manager object>
class kawaz.apps.blogs.models.Entry(*args, **kwargs)[ソース]

ベースクラス: django.db.models.base.Model

ブログ記事モデル

exception DoesNotExist

ベースクラス: django.core.exceptions.ObjectDoesNotExist

exception Entry.MultipleObjectsReturned

ベースクラス: django.core.exceptions.MultipleObjectsReturned

Entry.author

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

Entry.author_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.body

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.category

Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.

In the example:

class Child(Model):
    parent = ForeignKey(Parent, related_name='children')

child.parent is a ForwardManyToOneDescriptor instance.

Entry.category_id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.clean()[ソース]
Entry.created_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.get_absolute_url()[ソース]
Entry.get_next_by_created_at(*moreargs, **morekwargs)
Entry.get_next_by_updated_at(*moreargs, **morekwargs)
Entry.get_previous_by_created_at(*moreargs, **morekwargs)
Entry.get_previous_by_updated_at(*moreargs, **morekwargs)
Entry.get_pub_state_display(*moreargs, **morekwargs)
Entry.id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.objects = <kawaz.apps.blogs.models.EntryManager object>
Entry.pub_state

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.published_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.published_at_date

公開日

Entry.save(*args, **kwargs)[ソース]
Entry.title

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

Entry.updated_at

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

class kawaz.apps.blogs.models.EntryManager[ソース]

ベースクラス: django.db.models.manager.Manager, kawaz.core.publishments.models.PublishmentManagerMixin

urls Module

views Module