Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0001_initial.py 986B

1234567891011121314151617181920212223242526272829
  1. # Generated by Django 2.0.6 on 2018-06-28 09:13
  2. from django.conf import settings
  3. from django.db import migrations, models
  4. import django.db.models.deletion
  5. import django.utils.timezone
  6. class Migration(migrations.Migration):
  7. initial = True
  8. dependencies = [
  9. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  10. ]
  11. operations = [
  12. migrations.CreateModel(
  13. name='Post',
  14. fields=[
  15. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  16. ('title', models.CharField(max_length=200)),
  17. ('text', models.TextField()),
  18. ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
  19. ('published_date', models.DateTimeField(blank=True, null=True)),
  20. ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  21. ],
  22. ),
  23. ]