blogs Package¶
activity Module¶
admin Module¶
-
class
kawaz.apps.blogs.admin.EntryAdmin(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin-
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')¶
-
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
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.parentis aForwardManyToOneDescriptorinstance.
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.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
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>¶
-
exception
-
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
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.parentis aForwardManyToOneDescriptorinstance.
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.parentis aForwardManyToOneDescriptorinstance.
-
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.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_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.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.
-
exception
-
class
kawaz.apps.blogs.models.EntryManager[ソース]¶ ベースクラス:
django.db.models.manager.Manager,kawaz.core.publishments.models.PublishmentManagerMixin