classroom.models.billings module

class classroom.models.billings.Billing(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

영수증(지불 정보)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

amount

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

budget

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.

budget_id

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

column_prefix = 'BI_'
created_at

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

data

A placeholder class that provides a way to set the attribute on the model.

get_next_by_created_at(**morekwargs)
get_previous_by_created_at(**morekwargs)
id

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

objects = <classroom.models.billings.BillingManager object>
class classroom.models.billings.BillingManager[소스]

Bases: django.db.models.manager.Manager

get_queryset()[소스]

Returns a new QuerySet object. Subclasses can override this method to easily customize the behavior of the Manager.

class classroom.models.billings.Budget(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

예산

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

billings

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.

column_prefix = 'BG_'
courses

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.

end_date

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

granted_users
id

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

limitation

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

manager_users
name

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

objects = <classroom.models.billings.BudgetManager object>
payment

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.

payment_id

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

roles

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.

spends
start_date

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

users
class classroom.models.billings.BudgetManager[소스]

Bases: django.db.models.manager.Manager

get_queryset()[소스]

Returns a new QuerySet object. Subclasses can override this method to easily customize the behavior of the Manager.

class classroom.models.billings.BudgetRole(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

예산 접근 권한

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

ROLE_CHOICES = (('user', 'Owner'), ('granted', 'Granted'), ('manager', 'Manager'))
ROLE_GRANTED = 'granted'
ROLE_MANAGER = 'manager'
ROLE_OWNER = 'user'
budget

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.

budget_id

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

column_prefix = 'BI_'
get_type_display(**morekwargs)
id

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

type

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

user

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.

user_id

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

class classroom.models.billings.CreditCard(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

신용카드

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

alias

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

card_number

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

column_prefix = 'CC_'
expiration

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

id

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

name_on_card

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>
payments

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.

user

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.

user_id

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

class classroom.models.billings.Payment(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

결제/지불 방법

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

PAYMENT_CREDITCARD = 'creditcard'
PAYMENT_METHOD_CHOICES = (('creditcard', '신용카드/직불카드'), ('prepaid', '선불충전'))
PAYMENT_PREPAID = 'prepaid'
associated_budgets

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.

card

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.

card_id

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

column_prefix = 'PM_'
id

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

objects = <classroom.models.billings.PaymentManager object>
prepaid

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.

prepaid_id

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

user

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.

user_id

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

class classroom.models.billings.PaymentManager[소스]

Bases: django.db.models.manager.Manager

get_queryset()[소스]

Returns a new QuerySet object. Subclasses can override this method to easily customize the behavior of the Manager.

class classroom.models.billings.Prepaid(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

선불 충전

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

column_prefix = 'PP'
credits

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

id

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>
payments

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.

user

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.

user_id

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

class classroom.models.billings.PrepaidCreditLog(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

선불 충전 사용 내역

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

amount

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

column_prefix = 'PPCL'
data

A placeholder class that provides a way to set the attribute on the model.

id

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>
user

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.

user_id

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