"Fossies" - the Fresh Open Source Software Archive

Member "taiga-back-5.0.6/taiga/projects/migrations/0003_auto_20140913_1710.py" (15 Jan 2020, 988 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 "0003_auto_20140913_1710.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.conf import settings
    6 
    7 
    8 class Migration(migrations.Migration):
    9     dependencies = [
   10         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
   11         ('projects', '0002_auto_20140903_0920'),
   12     ]
   13 
   14     operations = [
   15         migrations.RenameField(
   16             model_name='membership',
   17             old_name='invited_by_id',
   18             new_name='invited_by_id_old',
   19         ),
   20 
   21         migrations.AddField(
   22             model_name='membership',
   23             name='invited_by',
   24             field=models.ForeignKey(null=True, to=settings.AUTH_USER_MODEL, blank=True, related_name='ihaveinvited+'),
   25             preserve_default=True,
   26         ),
   27 
   28         migrations.RunSQL("UPDATE projects_membership SET invited_by_id = invited_by_id_old"),
   29 
   30         migrations.RemoveField(
   31             model_name='membership',
   32             name='invited_by_id_old',
   33         ),
   34 
   35     ]