-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add log models * Add log models * Complete academic disciplines part * Finish status log * Minor issues * Tests
- Loading branch information
Showing
29 changed files
with
1,191 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-08-08 14:00+0000\n" | ||
"POT-Creation-Date: 2024-08-12 14:53+0000\n" | ||
"PO-Revision-Date: 2024-07-23 17:04+0000\n" | ||
"Last-Translator: Дмитрий Чернушевич <[email protected]>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: django\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-08-08 14:00+0000\n" | ||
"POT-Creation-Date: 2024-08-12 14:53+0000\n" | ||
"PO-Revision-Date: 2015-03-18 08:34+0000\n" | ||
"Last-Translator: Jannis Leidel <[email protected]>\n" | ||
"Language-Team: Russian (http://www.transifex.com/projects/p/django/language/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-08-08 14:00+0000\n" | ||
"POT-Creation-Date: 2024-08-12 14:53+0000\n" | ||
"PO-Revision-Date: 2022-02-21 15:24+0000\n" | ||
"Last-Translator: Сергей Жеревчук <[email protected]>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import factory.fuzzy | ||
from learning.settings import StudentStatuses | ||
from study_programs.tests.factories import AcademicDisciplineFactory | ||
from users.models import StudentStatusLog, StudentAcademicDisciplineLog | ||
from users.tests.factories import StudentProfileFactory, CuratorFactory | ||
|
||
__all__ = ('StudentStatusLogFactory', 'StudentAcademicDisciplineLogFactory') | ||
|
||
class StudentStatusLogFactory(factory.django.DjangoModelFactory): | ||
class Meta: | ||
model = StudentStatusLog | ||
|
||
status = factory.fuzzy.FuzzyChoice([x for x, _ in StudentStatuses.choices]) | ||
entry_author = factory.SubFactory(CuratorFactory) | ||
|
||
@factory.lazy_attribute | ||
def student_profile(self): | ||
return StudentProfileFactory(status=self.status) | ||
|
||
class StudentAcademicDisciplineLogFactory(factory.django.DjangoModelFactory): | ||
class Meta: | ||
model = StudentAcademicDisciplineLog | ||
|
||
academic_discipline = factory.SubFactory(AcademicDisciplineFactory) | ||
entry_author = factory.SubFactory(CuratorFactory) | ||
|
||
@factory.lazy_attribute | ||
def student_profile(self): | ||
return StudentProfileFactory(academic_disciplines=[self.academic_discipline]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.