feedback.models module

class feedback.models.Feedback(id, typename, time, modify_time, commentbase_ptr, type, title, content, person, org_type, org, url, issue_status, read_status, solve_status, feedback_time, publisher_public, org_public, public_time, public_status)[源代码]

基类:CommentBase

exception DoesNotExist

基类:DoesNotExist

class IssueStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[源代码]

基类:IntegerChoices

DELETED = 2
DRAFTED = 0
ISSUED = 1
exception MultipleObjectsReturned

基类:MultipleObjectsReturned

class PublicStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[源代码]

基类:IntegerChoices

FORCE_PRIVATE = 3
PRIVATE = 1
PUBLIC = 0
WITHDRAWAL = 2
class ReadStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[源代码]

基类:IntegerChoices

READ = 0
UNREAD = 1
class SolveStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[源代码]

基类:IntegerChoices

SOLVED = 0
SOLVING = 1
UNMARKED = 3
UNSOLVABLE = 2
commentbase_ptr

Accessor to the related object on the forward side of a one-to-one relation.

In the example:

class Restaurant(Model):
    place = OneToOneField(Place, related_name='restaurant')

Restaurant.place is a ForwardOneToOneDescriptor instance.

commentbase_ptr_id
content

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

feedback_time

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

get_absolute_url(absolute=False) str[源代码]

获取显示页面网址

参数:

absolute (bool, optional) -- 是否返回绝对地址, defaults to False

返回:

显示页面的网址

返回类型:

str

get_issue_status_display(*, field=<django.db.models.fields.SmallIntegerField: issue_status>)
get_next_by_feedback_time(*, field=<django.db.models.fields.DateTimeField: feedback_time>, is_next=True, **kwargs)
get_next_by_public_time(*, field=<django.db.models.fields.DateTimeField: public_time>, is_next=True, **kwargs)
get_previous_by_feedback_time(*, field=<django.db.models.fields.DateTimeField: feedback_time>, is_next=False, **kwargs)
get_previous_by_public_time(*, field=<django.db.models.fields.DateTimeField: public_time>, is_next=False, **kwargs)
get_public_status_display(*, field=<django.db.models.fields.SmallIntegerField: public_status>)
get_read_status_display(*, field=<django.db.models.fields.SmallIntegerField: read_status>)
get_solve_status_display(*, field=<django.db.models.fields.SmallIntegerField: solve_status>)
issue_status

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

objects: FeedbackManager = <feedback.models.FeedbackManager object>
org: Organization

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.

org_id
org_public

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

org_type: OrganizationType

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.

org_type_id
person

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.

person_id
public_status

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

public_time

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

publisher_public

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

read_status

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

save(*args, **kwargs)[源代码]

Save 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.

solve_status

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

title

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

type

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.

type_id
url

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

class feedback.models.FeedbackType(id, name, org_type, org, flexible)[源代码]

基类:Model

exception DoesNotExist

基类:ObjectDoesNotExist

class Flexible(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[源代码]

基类:IntegerChoices

ALL_DEFAULT = 2
NO_DEFAULT = 0
ORG_TYPE_DEFAULT = 1
exception MultipleObjectsReturned

基类:MultipleObjectsReturned

feedback_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 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.

flexible

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

get_flexible_display(*, field=<django.db.models.fields.SmallIntegerField: flexible>)
id

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

name

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

objects = <django.db.models.manager.Manager object>
org: Organization

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.

org_id
org_type: OrganizationType

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.

org_type_id