markov: increase context/target name size

This commit is contained in:
Brian S. Stephan 2015-05-15 08:32:03 -05:00
parent 34e0c76dce
commit 1570bc28f9
2 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('markov', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='markovcontext',
name='name',
field=models.CharField(unique=True, max_length=200),
),
migrations.AlterField(
model_name='markovtarget',
name='name',
field=models.CharField(unique=True, max_length=200),
),
]

View File

@ -15,7 +15,7 @@ class MarkovContext(models.Model):
"""Define contexts for Markov chains."""
name = models.CharField(max_length=64, unique=True)
name = models.CharField(max_length=200, unique=True)
def __unicode__(self):
"""String representation."""
@ -27,7 +27,7 @@ class MarkovTarget(models.Model):
"""Define IRC targets that relate to a context, and can occasionally be talked to."""
name = models.CharField(max_length=64, unique=True)
name = models.CharField(max_length=200, unique=True)
context = models.ForeignKey(MarkovContext)
chatter_chance = models.IntegerField(default=0)