products Package¶
activity
Module¶
-
class
kawaz.apps.products.activity.
ProductActivityMediator
[ソース]¶ ベースクラス:
activities.mediator.ActivityMediator
-
notifiers
= ('twitter_kawaz_info', 'twitter_kawaz_official')¶
-
admin
Module¶
-
class
kawaz.apps.products.admin.
CategoryAdmin
(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin
-
media
¶
-
-
class
kawaz.apps.products.admin.
PackageReleaseAdmin
(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin
-
list_display
= ('label', 'platform', 'version', 'downloads')¶
-
media
¶
-
readonly_fields
= ('downloads',)¶
-
search_fields
= ('title', 'description')¶
-
-
class
kawaz.apps.products.admin.
PlatformAdmin
(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin
-
media
¶
-
-
class
kawaz.apps.products.admin.
ProductAdmin
(model, admin_site)[ソース]¶ ベースクラス:
django.contrib.admin.options.ModelAdmin
-
list_display
= ('title', 'last_modifier_nickname', 'get_display_mode_display', 'published_at', 'created_at', 'updated_at')¶
-
media
¶
-
filters
Module¶
-
class
kawaz.apps.products.filters.
PlatformListGroupLinkWidget
(attrs=None, choices=())[ソース]¶ ベースクラス:
kawaz.core.filters.widgets.ListGroupLinkWidget
プラットフォームアイコンを一覧に出すWidget
-
media
¶
-
-
class
kawaz.apps.products.filters.
ProductFilter
(data=None, queryset=None, prefix=None, strict=None, request=None)[ソース]¶ ベースクラス:
django_filters.filterset.FilterSet
-
ProductFilter.
base_filters
= OrderedDict([('platforms', <django_filters.filters.ModelChoiceFilter object at 0x7f2542a7cf60>), ('categories', <django_filters.filters.ModelChoiceFilter object at 0x7f2542a7cfd0>)])¶
-
ProductFilter.
declared_filters
= OrderedDict([('platforms', <django_filters.filters.ModelChoiceFilter object at 0x7f2542a7cf60>), ('categories', <django_filters.filters.ModelChoiceFilter object at 0x7f2542a7cfd0>)])¶
-
forms
Module¶
-
class
kawaz.apps.products.forms.
PackageReleaseForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.core.forms.mixins.Bootstrap3InlineFormHelperMixin
,django.forms.models.ModelForm
-
class
Meta
[ソース]¶ ベースクラス:
object
-
fields
= ('label', 'platform', 'version', 'file_content')¶
-
model
¶ PackageRelease
のエイリアス
-
-
PackageReleaseForm.
base_fields
= OrderedDict([('label', <django.forms.fields.CharField object at 0x7f2542989668>), ('platform', <django.forms.models.ModelChoiceField object at 0x7f2542fa40f0>), ('version', <django.forms.fields.CharField object at 0x7f2542989c88>), ('file_content', <django.forms.fields.FileField object at 0x7f2542989b70>)])¶
-
PackageReleaseForm.
declared_fields
= OrderedDict()¶
-
PackageReleaseForm.
form_tag
= False¶
-
PackageReleaseForm.
media
¶
-
class
-
class
kawaz.apps.products.forms.
ProductBaseForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.core.forms.mixins.Bootstrap3HorizontalFormHelperMixin
,django.forms.models.ModelForm
-
ProductBaseForm.
base_fields
= OrderedDict([('title', <django.forms.fields.CharField object at 0x7f25429b4780>), ('slug', <django.forms.fields.SlugField object at 0x7f2542992d30>), ('thumbnail', <django.forms.fields.ImageField object at 0x7f25429a4cc0>), ('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('advertisement_image', <django.forms.fields.ImageField object at 0x7f2542a3e4e0>), ('trailer', <django.forms.fields.URLField object at 0x7f2542a43048>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('contact_info', <django.forms.fields.CharField object at 0x7f2542989da0>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>), ('display_mode', <django.forms.fields.TypedChoiceField object at 0x7f25429890f0>)])¶
-
ProductBaseForm.
declared_fields
= OrderedDict([('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>)])¶
-
ProductBaseForm.
form_tag
= False¶
-
ProductBaseForm.
media
¶
-
-
class
kawaz.apps.products.forms.
ProductCreateForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.apps.products.forms.ProductBaseForm
-
ProductCreateForm.
base_fields
= OrderedDict([('title', <django.forms.fields.CharField object at 0x7f2542a2ccf8>), ('slug', <django.forms.fields.SlugField object at 0x7f25429edb38>), ('thumbnail', <django.forms.fields.ImageField object at 0x7f2542989438>), ('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('advertisement_image', <django.forms.fields.ImageField object at 0x7f2542989eb8>), ('trailer', <django.forms.fields.URLField object at 0x7f25429b6080>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('contact_info', <django.forms.fields.CharField object at 0x7f25429b65c0>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>)])¶
-
ProductCreateForm.
declared_fields
= OrderedDict([('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>)])¶
-
ProductCreateForm.
media
¶
-
-
class
kawaz.apps.products.forms.
ProductUpdateForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.apps.products.forms.ProductBaseForm
-
ProductUpdateForm.
base_fields
= OrderedDict([('title', <django.forms.fields.CharField object at 0x7f2542989080>), ('thumbnail', <django.forms.fields.ImageField object at 0x7f2543069438>), ('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('advertisement_image', <django.forms.fields.ImageField object at 0x7f25429b6a20>), ('trailer', <django.forms.fields.URLField object at 0x7f25429b6a90>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('contact_info', <django.forms.fields.CharField object at 0x7f25429bc048>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>)])¶
-
ProductUpdateForm.
declared_fields
= OrderedDict([('description', <kawaz.core.forms.fields.MarkdownField object at 0x7f25429b4f98>), ('project', <django.forms.models.ModelChoiceField object at 0x7f25429895f8>), ('platforms', <django.forms.models.ModelMultipleChoiceField object at 0x7f2542a3ee48>), ('categories', <django.forms.models.ModelMultipleChoiceField object at 0x7f25429959e8>), ('administrators', <kawaz.core.personas.forms.persona.PersonaChoiceField object at 0x7f25429b4a20>), ('published_at', <django.forms.fields.DateField object at 0x7f25429b47b8>)])¶
-
ProductUpdateForm.
media
¶
-
-
class
kawaz.apps.products.forms.
ScreenshotForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.core.forms.mixins.Bootstrap3InlineFormHelperMixin
,django.forms.models.ModelForm
-
ScreenshotForm.
base_fields
= OrderedDict([('image', <django.forms.fields.ImageField object at 0x7f2542995128>)])¶
-
ScreenshotForm.
declared_fields
= OrderedDict()¶
-
ScreenshotForm.
form_tag
= False¶
-
ScreenshotForm.
media
¶
-
-
class
kawaz.apps.products.forms.
URLReleaseForm
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.core.forms.mixins.Bootstrap3InlineFormHelperMixin
,django.forms.models.ModelForm
-
class
Meta
[ソース]¶ ベースクラス:
object
-
fields
= ('label', 'platform', 'version', 'url')¶
-
model
¶ URLRelease
のエイリアス
-
-
URLReleaseForm.
base_fields
= OrderedDict([('label', <django.forms.fields.CharField object at 0x7f25429895c0>), ('platform', <django.forms.models.ModelChoiceField object at 0x7f2542989588>), ('version', <django.forms.fields.CharField object at 0x7f25429b6ef0>), ('url', <django.forms.fields.URLField object at 0x7f25429b6e48>)])¶
-
URLReleaseForm.
declared_fields
= OrderedDict()¶
-
URLReleaseForm.
form_tag
= False¶
-
URLReleaseForm.
media
¶
-
class
models
Module¶
-
class
kawaz.apps.products.models.
AbstractRelease
(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model
リリース形態のアブストラクトモデル
-
AbstractRelease.
created_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
AbstractRelease.
get_next_by_created_at
(*moreargs, **morekwargs)¶
-
AbstractRelease.
get_next_by_updated_at
(*moreargs, **morekwargs)¶
-
AbstractRelease.
get_previous_by_created_at
(*moreargs, **morekwargs)¶
-
AbstractRelease.
get_previous_by_updated_at
(*moreargs, **morekwargs)¶
-
AbstractRelease.
label
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
AbstractRelease.
platform
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
AbstractRelease.
platform_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
AbstractRelease.
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
AbstractRelease.
product_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
AbstractRelease.
updated_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
AbstractRelease.
version
¶ 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.products.models.
Category
(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model
プロダクトが所属するカテゴリーを表すモデル
e.g. ACT, STG, ADV など
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Category.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
Category.
description
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
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.
order
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Category.
product_set
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.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.products.models.
PackageRelease
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.apps.products.models.AbstractRelease
ファイル添付形式でのリリースモデル
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
PackageRelease.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
PackageRelease.
downloads
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
PackageRelease.
file_content
¶ The descriptor for the file attribute on the model instance. Returns a FieldFile when accessed so you can do stuff like:
>>> from myapp.models import MyModel >>> instance = MyModel.objects.get(pk=1) >>> instance.file.size
Assigns a file object on assignment so you can do:
>>> with open('/path/to/hello.world', 'r') as f: ... instance.file = File(f)
-
PackageRelease.
filename
¶ ファイル名を返します
-
PackageRelease.
get_next_by_created_at
(*moreargs, **morekwargs)¶
-
PackageRelease.
get_next_by_updated_at
(*moreargs, **morekwargs)¶
-
PackageRelease.
get_previous_by_created_at
(*moreargs, **morekwargs)¶
-
PackageRelease.
get_previous_by_updated_at
(*moreargs, **morekwargs)¶
-
PackageRelease.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
PackageRelease.
mimetype
¶ Mimetypeを返します
-
PackageRelease.
objects
= <django.db.models.manager.Manager object>¶
-
PackageRelease.
platform
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
PackageRelease.
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
exception
-
class
kawaz.apps.products.models.
Platform
(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model
プロダクトがサポートしているプラットフォームを表すモデル
e.g. Windows, Mac, Browser, iOS, PS Vita など
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Platform.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
Platform.
icon
¶ Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
-
Platform.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Platform.
label
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Platform.
objects
= <django.db.models.manager.Manager object>¶
-
Platform.
order
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Platform.
packagerelease_set
¶ 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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Platform.
products
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Platform.
urlrelease_set
¶ 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 aReverseManyToOneDescriptor
instance.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.products.models.
Product
(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model
完成したプロダクトを表すモデル
メンバーであれば誰でも作成・管理可能
-
DISPLAY_MODES
= (('featured', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f254419efd0>), ('tiled', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f25441a21d0>), ('normal', <django.utils.functional.lazy.<locals>.__proxy__ object at 0x7f25441a2208>))¶
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Product.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
Product.
administrators
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Product.
advertisement_image
¶ 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.
-
Product.
categories
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Product.
contact_info
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
created_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
description
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
display_mode
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
get_display_mode_display
(*moreargs, **morekwargs)¶
-
Product.
get_next_by_created_at
(*moreargs, **morekwargs)¶
-
Product.
get_next_by_published_at
(*moreargs, **morekwargs)¶
-
Product.
get_next_by_updated_at
(*moreargs, **morekwargs)¶
-
Product.
get_previous_by_created_at
(*moreargs, **morekwargs)¶
-
Product.
get_previous_by_published_at
(*moreargs, **morekwargs)¶
-
Product.
get_previous_by_updated_at
(*moreargs, **morekwargs)¶
-
Product.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
last_modifier
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
Product.
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.
-
Product.
objects
= <django.db.models.manager.Manager object>¶
-
Product.
packagereleases
¶ 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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Product.
platforms
¶ 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.toppings
andtopping.pizzas
areManyToManyDescriptor
instances.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Product.
project
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
Product.
project_id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
published_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
save
(force_insert=False, force_update=False, using=None, update_fields=None)¶ Saves the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
-
Product.
screenshots
¶ 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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
Product.
slug
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
thumbnail
¶ 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.
-
Product.
title
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
trailer
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
updated_at
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Product.
urlreleases
¶ 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 aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
-
class
kawaz.apps.products.models.
Screenshot
(*args, **kwargs)[ソース]¶ ベースクラス:
django.db.models.base.Model
プロダクトのスクリーンショットモデル
プロダクト管理者は何枚でもプロダクトに関連付けることが出来る
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
Screenshot.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
Screenshot.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
Screenshot.
image
¶ 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.
-
Screenshot.
objects
= <django.db.models.manager.Manager object>¶
-
Screenshot.
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
Screenshot.
product_id
¶ 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.products.models.
URLRelease
(*args, **kwargs)[ソース]¶ ベースクラス:
kawaz.apps.products.models.AbstractRelease
URL指定形式でのリリースモデル。主に外部ホスティングでのリリース用
e.g. iTunes App Store, Google Play, Vector など
-
exception
DoesNotExist
¶ ベースクラス:
django.core.exceptions.ObjectDoesNotExist
-
exception
URLRelease.
MultipleObjectsReturned
¶ ベースクラス:
django.core.exceptions.MultipleObjectsReturned
-
URLRelease.
PLAY_NOW_PLATFORM_LABELS
= ['ブラウザ']¶
-
URLRelease.
app_id
¶ そのリリースがiOSアプリかAndroidアプリだった場合は、そのアプリのAppIDを取得して返します そうではない場合、空白文字を返します
-
URLRelease.
get_next_by_created_at
(*moreargs, **morekwargs)¶
-
URLRelease.
get_next_by_updated_at
(*moreargs, **morekwargs)¶
-
URLRelease.
get_previous_by_created_at
(*moreargs, **morekwargs)¶
-
URLRelease.
get_previous_by_updated_at
(*moreargs, **morekwargs)¶
-
URLRelease.
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
URLRelease.
is_appstore
¶ App Store の URL か否か
-
URLRelease.
is_googleplay
¶ Google Play の URL か否か
-
URLRelease.
objects
= <django.db.models.manager.Manager object>¶
-
URLRelease.
pageview
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
URLRelease.
platform
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
URLRelease.
product
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
child.parent
is aForwardManyToOneDescriptor
instance.
-
URLRelease.
url
¶ 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.products.models.
UnsavedForeignKey
(to, on_delete=None, related_name=None, related_query_name=None, limit_choices_to=None, parent_link=False, to_field=None, db_constraint=True, **kwargs)[ソース]¶ ベースクラス:
django.db.models.fields.related.ForeignKey
-
allow_unsaved_instance_assignment
= True¶
-
perms
Module¶
urls
Module¶
views
Module¶
-
class
kawaz.apps.products.views.
PackageReleaseDetailView
(**kwargs)[ソース]¶ ベースクラス:
django.views.generic.detail.DetailView
-
model
¶ PackageRelease
のエイリアス
-
-
class
kawaz.apps.products.views.
ProductCreateView
(**kwargs)[ソース]¶ ベースクラス:
kawaz.apps.products.views.ProductFormMixin
,django.views.generic.edit.CreateView
-
dispatch
(request, *args, **kwargs)¶
-
form_class
¶ ProductCreateForm
のエイリアス
-
model
¶ Product
のエイリアス
-
-
class
kawaz.apps.products.views.
ProductDeleteView
(**kwargs)[ソース]¶ ベースクラス:
kawaz.core.views.delete.DeleteSuccessMessageMixin
,django.views.generic.edit.DeleteView
-
dispatch
(request, *args, **kwargs)¶
-
model
¶ Product
のエイリアス
-
success_url
= <django.utils.functional.lazy.<locals>.__proxy__ object>¶
-
-
class
kawaz.apps.products.views.
ProductDetailView
(**kwargs)[ソース]¶ ベースクラス:
django.views.generic.detail.DetailView
-
model
¶ Product
のエイリアス
-
-
class
kawaz.apps.products.views.
ProductFormMixin
[ソース]¶ ベースクラス:
django.contrib.messages.views.SuccessMessageMixin
-
class
kawaz.apps.products.views.
ProductListView
(**kwargs)[ソース]¶ ベースクラス:
django_filters.views.FilterView
-
filterset_class
¶ ProductFilter
のエイリアス
-
model
¶ Product
のエイリアス
-
paginate_by
= 20¶
-
template_name_suffix
= '_list'¶
-
-
class
kawaz.apps.products.views.
ProductPreviewView
(**kwargs)[ソース]¶ ベースクラス:
kawaz.core.views.preview.SingleObjectPreviewViewMixin
,django.views.generic.detail.DetailView
-
model
¶ Product
のエイリアス
-
template_name
= 'products/components/product_detail.html'¶
-