markov: increase context/target name size
This commit is contained in:
parent
34e0c76dce
commit
1570bc28f9
|
@ -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),
|
||||
),
|
||||
]
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue