SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated by Django 2.2.5 on 2019-10-04 17:01
  2.  
  3. import datetime
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. import django.db.models.deletion
  7. from django.utils.timezone import utc
  8. import jayparkdating.utils
  9.  
  10.  
  11. class Migration(migrations.Migration):
  12.  
  13.     dependencies = [
  14.         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  15.         ('accounts', '0002_auto_20191005_0158'),
  16.     ]
  17.  
  18.     operations = [
  19.         migrations.RemoveField(
  20.             model_name='profile',
  21.             name='photo',
  22.         ),
  23.         migrations.AlterField(
  24.             model_name='profile',
  25.             name='date_of_birth',
  26.             field=models.DateField(default=datetime.datetime(2019, 10, 4, 17, 1, 10, 320846, tzinfo=utc)),
  27.         ),
  28.         migrations.CreateModel(
  29.             name='Photo',
  30.             fields=[
  31.                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  32.                 ('photo', models.ImageField(blank=True, upload_to=jayparkdating.utils.uuid_upload_to)),
  33.                 ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Profile')),
  34.             ],
  35.         ),
  36.         migrations.CreateModel(
  37.             name='Messages',
  38.             fields=[
  39.                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  40.                 ('content', models.CharField(max_length=500)),
  41.                 ('created_at', models.DateTimeField(auto_now=True)),
  42.                 ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_receiver', to=settings.AUTH_USER_MODEL)),
  43.                 ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='message_sender', to=settings.AUTH_USER_MODEL)),
  44.             ],
  45.         ),
  46.     ]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top