diff --git a/evgenApp/__pycache__/__init__.cpython-39.pyc b/evgenApp/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..f30544f Binary files /dev/null and b/evgenApp/__pycache__/__init__.cpython-39.pyc differ diff --git a/evgenApp/__pycache__/schema.cpython-39.pyc b/evgenApp/__pycache__/schema.cpython-39.pyc new file mode 100644 index 0000000..c3d8dbb Binary files /dev/null and b/evgenApp/__pycache__/schema.cpython-39.pyc differ diff --git a/evgenApp/__pycache__/settings.cpython-39.pyc b/evgenApp/__pycache__/settings.cpython-39.pyc new file mode 100644 index 0000000..cd8fb26 Binary files /dev/null and b/evgenApp/__pycache__/settings.cpython-39.pyc differ diff --git a/evgenApp/__pycache__/urls.cpython-39.pyc b/evgenApp/__pycache__/urls.cpython-39.pyc new file mode 100644 index 0000000..dd95801 Binary files /dev/null and b/evgenApp/__pycache__/urls.cpython-39.pyc differ diff --git a/evgenApp/__pycache__/wsgi.cpython-39.pyc b/evgenApp/__pycache__/wsgi.cpython-39.pyc new file mode 100644 index 0000000..b246b3a Binary files /dev/null and b/evgenApp/__pycache__/wsgi.cpython-39.pyc differ diff --git a/hyperlinks/__pycache__/__init__.cpython-39.pyc b/hyperlinks/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..d00ebc2 Binary files /dev/null and b/hyperlinks/__pycache__/__init__.cpython-39.pyc differ diff --git a/hyperlinks/__pycache__/admin.cpython-39.pyc b/hyperlinks/__pycache__/admin.cpython-39.pyc new file mode 100644 index 0000000..bb258a5 Binary files /dev/null and b/hyperlinks/__pycache__/admin.cpython-39.pyc differ diff --git a/hyperlinks/__pycache__/models.cpython-39.pyc b/hyperlinks/__pycache__/models.cpython-39.pyc new file mode 100644 index 0000000..7ce3fde Binary files /dev/null and b/hyperlinks/__pycache__/models.cpython-39.pyc differ diff --git a/hyperlinks/__pycache__/schema.cpython-39.pyc b/hyperlinks/__pycache__/schema.cpython-39.pyc new file mode 100644 index 0000000..0aeadd6 Binary files /dev/null and b/hyperlinks/__pycache__/schema.cpython-39.pyc differ diff --git a/hyperlinks/migrations/__pycache__/0001_initial.cpython-39.pyc b/hyperlinks/migrations/__pycache__/0001_initial.cpython-39.pyc new file mode 100644 index 0000000..a3fdb62 Binary files /dev/null and b/hyperlinks/migrations/__pycache__/0001_initial.cpython-39.pyc differ diff --git a/hyperlinks/migrations/__pycache__/0002_auto_20210120_2119.cpython-39.pyc b/hyperlinks/migrations/__pycache__/0002_auto_20210120_2119.cpython-39.pyc new file mode 100644 index 0000000..7677df6 Binary files /dev/null and b/hyperlinks/migrations/__pycache__/0002_auto_20210120_2119.cpython-39.pyc differ diff --git a/hyperlinks/migrations/__pycache__/__init__.cpython-39.pyc b/hyperlinks/migrations/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..492052d Binary files /dev/null and b/hyperlinks/migrations/__pycache__/__init__.cpython-39.pyc differ diff --git a/lessons/__pycache__/__init__.cpython-39.pyc b/lessons/__pycache__/__init__.cpython-39.pyc index 680571b..7cca255 100644 Binary files a/lessons/__pycache__/__init__.cpython-39.pyc and b/lessons/__pycache__/__init__.cpython-39.pyc differ diff --git a/lessons/__pycache__/admin.cpython-39.pyc b/lessons/__pycache__/admin.cpython-39.pyc new file mode 100644 index 0000000..df71e86 Binary files /dev/null and b/lessons/__pycache__/admin.cpython-39.pyc differ diff --git a/lessons/__pycache__/gqlTypes.cpython-39.pyc b/lessons/__pycache__/gqlTypes.cpython-39.pyc new file mode 100644 index 0000000..c55018e Binary files /dev/null and b/lessons/__pycache__/gqlTypes.cpython-39.pyc differ diff --git a/lessons/__pycache__/models.cpython-39.pyc b/lessons/__pycache__/models.cpython-39.pyc index 2e1ba2e..47ec9b9 100644 Binary files a/lessons/__pycache__/models.cpython-39.pyc and b/lessons/__pycache__/models.cpython-39.pyc differ diff --git a/lessons/__pycache__/schema.cpython-39.pyc b/lessons/__pycache__/schema.cpython-39.pyc new file mode 100644 index 0000000..838bee7 Binary files /dev/null and b/lessons/__pycache__/schema.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0001_initial.cpython-39.pyc b/lessons/migrations/__pycache__/0001_initial.cpython-39.pyc new file mode 100644 index 0000000..f419101 Binary files /dev/null and b/lessons/migrations/__pycache__/0001_initial.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0002_auto_20210205_1326.cpython-39.pyc b/lessons/migrations/__pycache__/0002_auto_20210205_1326.cpython-39.pyc new file mode 100644 index 0000000..a159ead Binary files /dev/null and b/lessons/migrations/__pycache__/0002_auto_20210205_1326.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0003_auto_20210205_1541.cpython-39.pyc b/lessons/migrations/__pycache__/0003_auto_20210205_1541.cpython-39.pyc new file mode 100644 index 0000000..0a2b073 Binary files /dev/null and b/lessons/migrations/__pycache__/0003_auto_20210205_1541.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0004_auto_20210205_1543.cpython-39.pyc b/lessons/migrations/__pycache__/0004_auto_20210205_1543.cpython-39.pyc new file mode 100644 index 0000000..231efde Binary files /dev/null and b/lessons/migrations/__pycache__/0004_auto_20210205_1543.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0005_auto_20210205_1544.cpython-39.pyc b/lessons/migrations/__pycache__/0005_auto_20210205_1544.cpython-39.pyc new file mode 100644 index 0000000..09f9d11 Binary files /dev/null and b/lessons/migrations/__pycache__/0005_auto_20210205_1544.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0006_auto_20210205_1848.cpython-39.pyc b/lessons/migrations/__pycache__/0006_auto_20210205_1848.cpython-39.pyc new file mode 100644 index 0000000..4c802eb Binary files /dev/null and b/lessons/migrations/__pycache__/0006_auto_20210205_1848.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0007_auto_20210205_1857.cpython-39.pyc b/lessons/migrations/__pycache__/0007_auto_20210205_1857.cpython-39.pyc new file mode 100644 index 0000000..0d6dc36 Binary files /dev/null and b/lessons/migrations/__pycache__/0007_auto_20210205_1857.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0008_auto_20210205_1858.cpython-39.pyc b/lessons/migrations/__pycache__/0008_auto_20210205_1858.cpython-39.pyc new file mode 100644 index 0000000..116c98f Binary files /dev/null and b/lessons/migrations/__pycache__/0008_auto_20210205_1858.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/0009_auto_20210210_2116.cpython-39.pyc b/lessons/migrations/__pycache__/0009_auto_20210210_2116.cpython-39.pyc new file mode 100644 index 0000000..11dfd62 Binary files /dev/null and b/lessons/migrations/__pycache__/0009_auto_20210210_2116.cpython-39.pyc differ diff --git a/lessons/migrations/__pycache__/__init__.cpython-39.pyc b/lessons/migrations/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..61a4e7c Binary files /dev/null and b/lessons/migrations/__pycache__/__init__.cpython-39.pyc differ diff --git a/lessons/models.py b/lessons/models.py index fc89e56..3c5b78f 100644 --- a/lessons/models.py +++ b/lessons/models.py @@ -86,4 +86,17 @@ class Answer(models.Model): content = models.TextField() number = models.IntegerField() completed = models.BooleanField(default=False) - score = models.IntegerField(default=0) \ No newline at end of file + 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) \ No newline at end of file diff --git a/organisations/__pycache__/__init__.cpython-39.pyc b/organisations/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..a467f97 Binary files /dev/null and b/organisations/__pycache__/__init__.cpython-39.pyc differ diff --git a/organisations/__pycache__/admin.cpython-39.pyc b/organisations/__pycache__/admin.cpython-39.pyc new file mode 100644 index 0000000..7b0faa5 Binary files /dev/null and b/organisations/__pycache__/admin.cpython-39.pyc differ diff --git a/organisations/__pycache__/gqlTypes.cpython-39.pyc b/organisations/__pycache__/gqlTypes.cpython-39.pyc new file mode 100644 index 0000000..9a752d5 Binary files /dev/null and b/organisations/__pycache__/gqlTypes.cpython-39.pyc differ diff --git a/organisations/__pycache__/mixins.cpython-39.pyc b/organisations/__pycache__/mixins.cpython-39.pyc new file mode 100644 index 0000000..6e4e5f9 Binary files /dev/null and b/organisations/__pycache__/mixins.cpython-39.pyc differ diff --git a/organisations/__pycache__/models.cpython-39.pyc b/organisations/__pycache__/models.cpython-39.pyc new file mode 100644 index 0000000..5f5cf2d Binary files /dev/null and b/organisations/__pycache__/models.cpython-39.pyc differ diff --git a/organisations/__pycache__/mutation.cpython-39.pyc b/organisations/__pycache__/mutation.cpython-39.pyc new file mode 100644 index 0000000..9cfe96b Binary files /dev/null and b/organisations/__pycache__/mutation.cpython-39.pyc differ diff --git a/organisations/__pycache__/query.cpython-39.pyc b/organisations/__pycache__/query.cpython-39.pyc new file mode 100644 index 0000000..5cf8c50 Binary files /dev/null and b/organisations/__pycache__/query.cpython-39.pyc differ diff --git a/organisations/__pycache__/schema.cpython-39.pyc b/organisations/__pycache__/schema.cpython-39.pyc new file mode 100644 index 0000000..0ce4a82 Binary files /dev/null and b/organisations/__pycache__/schema.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/0001_initial.cpython-39.pyc b/organisations/migrations/__pycache__/0001_initial.cpython-39.pyc new file mode 100644 index 0000000..4994a71 Binary files /dev/null and b/organisations/migrations/__pycache__/0001_initial.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/0002_auto_20210107_2139.cpython-39.pyc b/organisations/migrations/__pycache__/0002_auto_20210107_2139.cpython-39.pyc new file mode 100644 index 0000000..b450d23 Binary files /dev/null and b/organisations/migrations/__pycache__/0002_auto_20210107_2139.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/0003_auto_20210107_2142.cpython-39.pyc b/organisations/migrations/__pycache__/0003_auto_20210107_2142.cpython-39.pyc new file mode 100644 index 0000000..6526325 Binary files /dev/null and b/organisations/migrations/__pycache__/0003_auto_20210107_2142.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/0004_auto_20210108_2013.cpython-39.pyc b/organisations/migrations/__pycache__/0004_auto_20210108_2013.cpython-39.pyc new file mode 100644 index 0000000..d994605 Binary files /dev/null and b/organisations/migrations/__pycache__/0004_auto_20210108_2013.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/0005_auto_20210120_1944.cpython-39.pyc b/organisations/migrations/__pycache__/0005_auto_20210120_1944.cpython-39.pyc new file mode 100644 index 0000000..fd89c00 Binary files /dev/null and b/organisations/migrations/__pycache__/0005_auto_20210120_1944.cpython-39.pyc differ diff --git a/organisations/migrations/__pycache__/__init__.cpython-39.pyc b/organisations/migrations/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..45c9587 Binary files /dev/null and b/organisations/migrations/__pycache__/__init__.cpython-39.pyc differ diff --git a/users/__pycache__/__init__.cpython-39.pyc b/users/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..12a1b39 Binary files /dev/null and b/users/__pycache__/__init__.cpython-39.pyc differ diff --git a/users/__pycache__/admin.cpython-39.pyc b/users/__pycache__/admin.cpython-39.pyc new file mode 100644 index 0000000..4371edc Binary files /dev/null and b/users/__pycache__/admin.cpython-39.pyc differ diff --git a/users/__pycache__/models.cpython-39.pyc b/users/__pycache__/models.cpython-39.pyc new file mode 100644 index 0000000..4d06439 Binary files /dev/null and b/users/__pycache__/models.cpython-39.pyc differ diff --git a/users/__pycache__/schema.cpython-39.pyc b/users/__pycache__/schema.cpython-39.pyc new file mode 100644 index 0000000..e1cfe87 Binary files /dev/null and b/users/__pycache__/schema.cpython-39.pyc differ diff --git a/users/migrations/__pycache__/0001_initial.cpython-39.pyc b/users/migrations/__pycache__/0001_initial.cpython-39.pyc new file mode 100644 index 0000000..dfc317f Binary files /dev/null and b/users/migrations/__pycache__/0001_initial.cpython-39.pyc differ diff --git a/users/migrations/__pycache__/__init__.cpython-39.pyc b/users/migrations/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..bddfdb3 Binary files /dev/null and b/users/migrations/__pycache__/__init__.cpython-39.pyc differ