mirror of
https://github.com/evgen-app/evg-app-back.git
synced 2024-11-14 04:56:33 +03:00
change bugs
This commit is contained in:
parent
e4987f7092
commit
a998c3f448
BIN
evgenApp/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
evgenApp/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
evgenApp/__pycache__/schema.cpython-39.pyc
Normal file
BIN
evgenApp/__pycache__/schema.cpython-39.pyc
Normal file
Binary file not shown.
BIN
evgenApp/__pycache__/settings.cpython-39.pyc
Normal file
BIN
evgenApp/__pycache__/settings.cpython-39.pyc
Normal file
Binary file not shown.
BIN
evgenApp/__pycache__/urls.cpython-39.pyc
Normal file
BIN
evgenApp/__pycache__/urls.cpython-39.pyc
Normal file
Binary file not shown.
BIN
evgenApp/__pycache__/wsgi.cpython-39.pyc
Normal file
BIN
evgenApp/__pycache__/wsgi.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hyperlinks/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
hyperlinks/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hyperlinks/__pycache__/admin.cpython-39.pyc
Normal file
BIN
hyperlinks/__pycache__/admin.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hyperlinks/__pycache__/models.cpython-39.pyc
Normal file
BIN
hyperlinks/__pycache__/models.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hyperlinks/__pycache__/schema.cpython-39.pyc
Normal file
BIN
hyperlinks/__pycache__/schema.cpython-39.pyc
Normal file
Binary file not shown.
BIN
hyperlinks/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
BIN
hyperlinks/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
hyperlinks/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
hyperlinks/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
lessons/__pycache__/admin.cpython-39.pyc
Normal file
BIN
lessons/__pycache__/admin.cpython-39.pyc
Normal file
Binary file not shown.
BIN
lessons/__pycache__/gqlTypes.cpython-39.pyc
Normal file
BIN
lessons/__pycache__/gqlTypes.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
BIN
lessons/__pycache__/schema.cpython-39.pyc
Normal file
BIN
lessons/__pycache__/schema.cpython-39.pyc
Normal file
Binary file not shown.
BIN
lessons/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
BIN
lessons/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lessons/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
lessons/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
|
@ -87,3 +87,16 @@ class Answer(models.Model):
|
||||||
number = models.IntegerField()
|
number = models.IntegerField()
|
||||||
completed = models.BooleanField(default=False)
|
completed = models.BooleanField(default=False)
|
||||||
score = models.IntegerField(default=0)
|
score = models.IntegerField(default=0)
|
||||||
|
|
||||||
|
|
||||||
|
@receiver(post_save, sender=AnswerSheet)
|
||||||
|
def createUserAnswers(sender, instance, created, **kwargs):
|
||||||
|
print(sender, instance)
|
||||||
|
for task in instance.test.task_set.all():
|
||||||
|
print(task, instance.test.task_set.all())
|
||||||
|
Answer.objects.create(sheet=instance, content="", number=task.number)
|
||||||
|
|
||||||
|
|
||||||
|
@receiver(post_save, sender=Answer)
|
||||||
|
def answerR(sender, instance, **kwargs):
|
||||||
|
print(instance, instance.sheet, instance.sheet.child)
|
BIN
organisations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/admin.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/admin.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/gqlTypes.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/gqlTypes.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/mixins.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/mixins.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/models.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/models.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/mutation.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/mutation.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/query.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/query.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/__pycache__/schema.cpython-39.pyc
Normal file
BIN
organisations/__pycache__/schema.cpython-39.pyc
Normal file
Binary file not shown.
BIN
organisations/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
BIN
organisations/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
organisations/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
organisations/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
users/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/__pycache__/admin.cpython-39.pyc
Normal file
BIN
users/__pycache__/admin.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/__pycache__/models.cpython-39.pyc
Normal file
BIN
users/__pycache__/models.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/__pycache__/schema.cpython-39.pyc
Normal file
BIN
users/__pycache__/schema.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
BIN
users/migrations/__pycache__/0001_initial.cpython-39.pyc
Normal file
Binary file not shown.
BIN
users/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
users/migrations/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user