classroom.models.courses module

class classroom.models.courses.Course(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

클래스(수업)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

TYPE_CHOICES = (('open', 'Open Course'), ('regular', 'Regular Course'))
TYPE_OPEN = 'open'
TYPE_REGULAR = 'regular'
assignments

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.

assistant_users
begin

start_date 의 별칭 :return:

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 = 'C_'
delete(using=None, keep_parents=False)[소스]
end

end_date 의 별칭 :return:

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.

info

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.restaurant is a ReverseOneToOneDescriptor instance.

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.

metadata

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.restaurant is a ReverseOneToOneDescriptor instance.

name

Course 이름 :return:

objects = <classroom.models.courses.CourseManager object>
owners
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.

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.

staff_roles
student_users
teaching_users
type

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

users

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 and topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class classroom.models.courses.CourseGitlabReference(*args, **kwargs)[소스]

Bases: classroom.models.mixins.GitlabGroupRefMixin, django.db.models.base.Model

GIT 저장소의 그룹에 대응 참조

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

column_prefix = 'CGR_'
compare_and_update(api)[소스]
course
data

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

metadata

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.

metadata_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>
class classroom.models.courses.CourseInfo(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

수업(Course)의 상세 정보

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

column_prefix = 'CI_'
course

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.

course_id

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

end_date

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

short_description

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

slug

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

start_date

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

summary

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

summary_format

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

Bases: django.db.models.base.Model

수업 초대 링크

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

clean()[소스]

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

column_prefix = 'CIL_'
course

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.

course_id

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

expired_at

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

get_next_by_expired_at(**morekwargs)
get_previous_by_expired_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 = <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.

slug

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.courses.CourseManager[소스]

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.courses.CourseMeta(*args, **kwargs)[소스]

Bases: django.db.models.base.Model, classroom.models.mixins.MetadataMixin

수업(Course)의 제어 정보(Meta)

ASSIGNMENT_END = 'done'
ASSIGNMENT_EXIST = 'exist'
ASSIGNMENT_NOT_EXIST = 'not_exist'
ASSIGNMENT_PROGRESS = 'progress'
ASSIGNMENT_STATUS_CHOICES = (('not_exist', 'Not exist'), ('exist', 'Exist'), ('progress', 'Progress'), ('done', 'End'))
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

assignment

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

begin

beginFrom의 별칭 :return:

clean()[소스]

Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS.

column_prefix = 'CM_'
course

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.

course_id

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

created_at

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

display_order

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

end

endTo의 별칭 :return:

get_assignment_display(**morekwargs)
get_classeek_id()[소스]
get_classeek_type()[소스]
get_course()[소스]
get_description()[소스]
get_name()[소스]
get_next_by_created_at(**morekwargs)
get_next_by_modified_at(**morekwargs)
get_path()[소스]
get_previous_by_created_at(**morekwargs)
get_previous_by_modified_at(**morekwargs)
git_ref

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.restaurant is a ReverseOneToOneDescriptor instance.

is_open_course()[소스]
modified_at

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.

students

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.courses.CourseRole(*args, **kwargs)[소스]

Bases: django.db.models.base.Model

수업에서의 역할(다중 역할)

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

ROLE_ASSISTANT = 'assistant'
ROLE_CHOICES = (('owner', 'Owner'), ('teaching', 'Professor/Teacher'), ('assistant', 'Assistant'), ('student', 'Student'))
ROLE_OWNER = 'owner'
ROLE_STAFF_CHOICES = (('owner', 'Owner'), ('teaching', 'Professor/Teacher'), ('assistant', 'Assistant'))
ROLE_STUDENT = 'student'
ROLE_TEACHING = 'teaching'
column_prefix = 'CR_'
course

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.

course_id

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

delete(using=None, keep_parents=False)[소스]
get_next_by_joined_at(**morekwargs)
get_previous_by_joined_at(**morekwargs)
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.

joined_at

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.