Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/m/a/manabi-HEAD/apps/flashcards/management/commands/flashcards_init.py   manabi(Download)
    assert japanese_fact_type.id == FactType.objects.japanese.id
    meaning_field = FieldType.objects.create(
        display_name='Meaning',
        name='meaning',
        fact_type=japanese_fact_type,
    )
    reading_field = FieldType.objects.create(
        display_name='Reading',
        name='reading',
        fact_type=japanese_fact_type,
    )
    expression_field = FieldType.objects.create(
        display_name='Expression',
        name='expression',
        fact_type=japanese_fact_type,
    part_of_speech_choices = pickle.dumps(partsofspeech.ALL_PART_OF_SPEECH_CHOICES)
    pos_field = FieldType.objects.create(
        display_name='Part of Speech',
        name='part_of_speech',
        hidden_in_grid=True,
    )
    notes_field = FieldType.objects.create(
        display_name='Notes',
        name='notes',
        fact_type=japanese_fact_type,