similar to a hybrid of the random facts (but defined more simply) and the dice rolling (but not picking from dice), this allows for definition of "choice sets" (only in the admin for the moment) and then getting a random pull from that set (only in the web interface for the moment)
22 lines
533 B
Python
22 lines
533 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ChoiceSet',
|
|
fields=[
|
|
('id', models.AutoField(serialize=False, primary_key=True, verbose_name='ID', auto_created=True)),
|
|
('name', models.CharField(max_length=20)),
|
|
('choices', models.TextField()),
|
|
],
|
|
),
|
|
]
|