~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to check_input/migrations/0001_initial.py

  • Committer: franku
  • Date: 2017-11-24 09:24:41 UTC
  • mto: This revision was merged to the branch mainline in revision 477.
  • Revision ID: somal@arcor.de-20171124092441-i3fuv708y2hk6b00
refactoring of variables; moved spam_check into the model

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
    operations = [
16
16
        migrations.CreateModel(
17
 
            name='FoundSpam',
 
17
            name='SuspiciousInput',
18
18
            fields=[
19
19
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
20
 
                ('spam_text', models.CharField(max_length=200)),
 
20
                ('text', models.CharField(max_length=200, verbose_name=b'suspicious user input')),
21
21
                ('object_id', models.PositiveIntegerField()),
22
 
                ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
23
 
                ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
 
22
                ('content_type', models.ForeignKey(verbose_name=b'related model', to='contenttypes.ContentType')),
 
23
                ('user', models.ForeignKey(verbose_name=b'related user', to=settings.AUTH_USER_MODEL)),
24
24
            ],
 
25
            options={
 
26
                'ordering': ['content_type_id'],
 
27
                'default_permissions': ('change',),
 
28
            },
25
29
        ),
26
30
    ]