"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/feedback/migrations/0001_initial.py" (15 Jan 2020, 1021 Bytes) of package /linux/www/taiga-back-5.0.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "0001_initial.py" see the Fossies "Dox" file reference documentation.

    1 # -*- coding: utf-8 -*-
    2 from __future__ import unicode_literals
    3 
    4 from django.db import models, migrations
    5 
    6 
    7 class Migration(migrations.Migration):
    8 
    9     dependencies = [
   10     ]
   11 
   12     operations = [
   13         migrations.CreateModel(
   14             name='FeedbackEntry',
   15             fields=[
   16                 ('id', models.AutoField(primary_key=True, auto_created=True, verbose_name='ID', serialize=False)),
   17                 ('full_name', models.CharField(verbose_name='full name', max_length=256)),
   18                 ('email', models.EmailField(verbose_name='email address', max_length=255)),
   19                 ('comment', models.TextField(verbose_name='comment')),
   20                 ('created_date', models.DateTimeField(auto_now_add=True, verbose_name='created date')),
   21             ],
   22             options={
   23                 'verbose_name': 'feedback entry',
   24                 'verbose_name_plural': 'feedback entries',
   25                 'ordering': ['-created_date', 'id'],
   26             },
   27             bases=(models.Model,),
   28         ),
   29     ]