"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/contact/migrations/0001_initial.py" (15 Jan 2020, 1394 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 # Generated by Django 1.9.2 on 2016-11-10 15:18
    3 from __future__ import unicode_literals
    4 
    5 from django.conf import settings
    6 from django.db import migrations, models
    7 import django.db.models.deletion
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     initial = True
   13 
   14     dependencies = [
   15         ('projects', '0056_auto_20161110_1518'),
   16         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   17     ]
   18 
   19     operations = [
   20         migrations.CreateModel(
   21             name='ContactEntry',
   22             fields=[
   23                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   24                 ('comment', models.TextField(verbose_name='comment')),
   25                 ('created_date', models.DateTimeField(auto_now_add=True, verbose_name='created date')),
   26                 ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contact_entries', to='projects.Project', verbose_name='project')),
   27                 ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='contact_entries', to=settings.AUTH_USER_MODEL, verbose_name='user')),
   28             ],
   29             options={
   30                 'verbose_name': 'contact entry',
   31                 'ordering': ['-created_date', 'id'],
   32                 'verbose_name_plural': 'contact entries',
   33             },
   34         ),
   35     ]