"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/votes/migrations/0002_auto_20150805_1600.py" (15 Jan 2020, 1078 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 "0002_auto_20150805_1600.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 from django.utils.timezone import utc
    6 from django.conf import settings
    7 import datetime
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     dependencies = [
   13         ('votes', '0001_initial'),
   14     ]
   15 
   16     operations = [
   17         migrations.AddField(
   18             model_name='vote',
   19             name='created_date',
   20             field=models.DateTimeField(auto_now_add=True, default=datetime.datetime(2015, 8, 5, 16, 0, 40, 158374, tzinfo=utc), verbose_name='created date'),
   21             preserve_default=False,
   22         ),
   23         migrations.AlterField(
   24             model_name='vote',
   25             name='user',
   26             field=models.ForeignKey(related_name='votes', to=settings.AUTH_USER_MODEL, verbose_name='user'),
   27             preserve_default=True,
   28         ),
   29         migrations.AlterField(
   30             model_name='votes',
   31             name='count',
   32             field=models.PositiveIntegerField(default=0, verbose_name='count'),
   33             preserve_default=True,
   34         ),
   35     ]