classroom.models.assignments.Assignment(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model
과제 모델
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
STATUS_CHOICES = (('hidden', '숨김'), ('dormant', '예정'), ('progress', '진행'), ('closed', '종료'))¶STATUS_CLOSED = 'closed'¶STATUS_DORMANT = 'dormant'¶STATUS_HIDDEN = 'hidden'¶STATUS_PROGRESS = 'progress'¶autoops¶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.
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 = 'A_'¶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.
end_date¶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.
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¶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.assignments.AssignmentManager object>¶public¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
readme¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
readme_format¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
repository¶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.
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.
status¶students¶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.
user_map¶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.
classroom.models.assignments.AssignmentAutoOp(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model
과제 자동화 스크립트
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
assignment¶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.
assignment_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 = 'AAO_'¶objects = <django.db.models.manager.Manager object>¶script¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
script_format¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
classroom.models.assignments.AssignmentBuild(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model
과제 빌드 결과
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
STATUS_CANCEL = ('cancelled',)¶STATUS_CHOICES = ((('passed',), 'Passed'), (('failure',), 'Failure'), (('cancelled',), 'Cancelled'), (('running',), 'Running'), (('pending',), 'Pending'))¶STATUS_FAILURE = ('failure',)¶STATUS_PASSED = ('passed',)¶STATUS_PENDING = ('pending',)¶STATUS_RUNNING = ('running',)¶column_prefix = 'AB_'¶end_time¶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_requested_at(**morekwargs)¶get_previous_by_requested_at(**morekwargs)¶get_status_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>¶ref¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
repository¶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.
repository_id¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
requested_at¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
start_time¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
status¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
submitted¶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.
classroom.models.assignments.AssignmentGitlabReference(metadata, data)[소스]¶Bases: django.db.models.base.Model, classroom.models.mixins.GitlabGroupRefMixin
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
VISIBILITY_CHOICE = (('public', '모두에게 공개'), ('private', '비공개 (등록된 구성원에게만 보임)'), ('internal', '회원에게 공개'))¶VISIBILITY_INTERNAL = 'internal'¶VISIBILITY_PRIVATE = 'private'¶VISIBILITY_PUBLIC = 'public'¶assignment¶column_prefix = 'AGR_'¶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>¶classroom.models.assignments.AssignmentMeta(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model, classroom.models.mixins.MetadataMixin
과제(Assignment)의 제어 정보(Meta)
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
artifacts_size¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
assignment¶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.
assignment_id¶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:
builds¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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 = 'AM_'¶commits¶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_next_by_created_at(**morekwargs)¶get_next_by_modified_at(**morekwargs)¶get_next_by_updated_at(**morekwargs)¶get_previous_by_created_at(**morekwargs)¶get_previous_by_modified_at(**morekwargs)¶get_previous_by_updated_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.
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.
storage_size¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
students¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
submits¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
updated_at¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
classroom.models.assignments.AssignmentRepository(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model, classroom.models.mixins.GitlabProjectRefMixin
과제 저장소(템플릿 저장소)
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
assignment¶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.
assignment_id¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
branch¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
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 = 'AR_'¶commit_id¶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.
http_url_to_repo¶objects = <django.db.models.manager.Manager object>¶origin¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ssh_url_to_repo¶upload¶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)
upload_at¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
url¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
web_url¶classroom.models.assignments.AssignmentSubmission(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model
과제 제출 모델
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
build¶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.
build_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 = 'AS_'¶commit_id¶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_submitted_at(**morekwargs)¶get_previous_by_submitted_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>¶repository¶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.
repository_id¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
submitted_at¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
classroom.models.assignments.AssignmentUser(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model
과제 수행자
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
assignment¶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.
assignment_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 = 'AU_'¶id¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
locked¶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>¶repository¶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.
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.
classroom.models.assignments.AssignmentUserRepository(*args, **kwargs)[소스]¶Bases: django.db.models.base.Model, classroom.models.mixins.GitlabProjectRefMixin
과제 수행자의 저장소
DoesNotExist¶Bases: django.core.exceptions.ObjectDoesNotExist
MultipleObjectsReturned¶Bases: django.core.exceptions.MultipleObjectsReturned
assignment_map¶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.
assignment_map_id¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
builds¶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 = 'AUR_'¶commit_id¶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.
http_url_to_repo¶memo¶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>¶repo¶A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ssh_url_to_repo¶submissions¶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¶web_url¶