projects Package¶
projects Package¶
activity Module¶
admin Module¶
-
class
kawaz.apps.projects.admin.CategoryAdmin(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin-
media¶
-
-
class
kawaz.apps.projects.admin.ProjectAdmin(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin-
list_display= ('title', 'get_status_display', 'administrator_nickname', 'created_at', 'updated_at', 'is_legacy')¶
-
media¶
-
search_fields= ('title', 'body', 'administrator__username', 'administrator__nickname', 'category__label')¶
-
forms Module¶
models Module¶
-
class
kawaz.apps.projects.models.Category(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Modelプロジェクトが所属するカテゴリモデル
スタッフが作成し、メンバーがプロジェクト作成・編集時に利用する
-
exception
DoesNotExist¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Category.MultipleObjectsReturned¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
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>¶
-
Category.projects¶ 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.
-
exception
-
class
kawaz.apps.projects.models.Project(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model現在進行形で作成しているプロジェクトを示すモデル
メンバーであれば自由に作成可能で所有者および参加者が編集権限を持つ また削除権限は所有者のみが持ち、所有権限の委託は未だ作成されていない。
-
exception
DoesNotExist¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Project.MultipleObjectsReturned¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
Project.STATUS= (('planning', 'Planning'), ('active', 'Active'), ('paused', 'Suspended'), ('eternal', 'Eternaled'), ('done', 'Released'))¶
-
Project.active_members¶
-
Project.administrator¶ 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.
-
Project.administrator_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.body¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.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.
-
Project.category_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.created_at¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.get_huge_icon()¶
-
Project.get_large_icon()¶
-
Project.get_middle_icon()¶
-
Project.get_next_by_created_at(*moreargs, **morekwargs)¶
-
Project.get_next_by_updated_at(*moreargs, **morekwargs)¶
-
Project.get_previous_by_created_at(*moreargs, **morekwargs)¶
-
Project.get_previous_by_updated_at(*moreargs, **morekwargs)¶
-
Project.get_pub_state_display(*moreargs, **morekwargs)¶
-
Project.get_small_icon()¶
-
Project.get_status_display(*moreargs, **morekwargs)¶
-
Project.icon¶ Enhanced ImageFileDescriptor
Just like the ImageFileDescriptor, but for ThumbnailField. The only difference is removing previous Image and Thumbnails from storage when the value has changed.
-
Project.id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.is_legacy¶ 企画中か活動中、かつ180日以上更新されていない場合、Trueが返ります
-
Project.last_modifier¶ 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.
-
Project.last_modifier_id¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.members¶ Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example:
class Pizza(Model): toppings = ManyToManyField(Topping, related_name='pizzas')
pizza.toppingsandtopping.pizzasareManyToManyDescriptorinstances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.
-
Project.objects= <kawaz.apps.projects.models.ProjectManager object>¶
-
Project.product¶ Accessor to the related object on the reverse side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
place.restaurantis aReverseOneToOneDescriptorinstance.
-
Project.pub_state¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.repository¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.slug¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.status¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.title¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.tracker¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Project.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.projects.models.ProjectManager[ソース]¶ ベースクラス:
django.db.models.manager.Manager,kawaz.core.publishments.models.PublishmentManagerMixin-
archived(user)[ソース]¶ 指定されたユーザーがー閲覧可能なプロジェクトのうち アーカイブ化されたプロジェクトのクエリを返す 以下のようなプロジェクトがアーカイブである
状態がpaused, eternaled, doneのいずれかである 状態がplanningかつ、created_atから90日以上経過している
-