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 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Generated by Django 2.0.6 on 2018-08-15 16:15
  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. import taggit.managers
  7. class Migration(migrations.Migration):
  8. initial = True
  9. dependencies = [
  10. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  11. ('taggit', '0002_auto_20150616_2121'),
  12. ]
  13. operations = [
  14. migrations.CreateModel(
  15. name='CustomUser',
  16. fields=[
  17. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  18. ('mytags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
  19. ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  20. ],
  21. ),
  22. migrations.CreateModel(
  23. name='Post',
  24. fields=[
  25. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  26. ('title', models.CharField(max_length=200)),
  27. ('text', models.TextField()),
  28. ('created_date', models.DateTimeField(default=django.utils.timezone.now)),
  29. ('published_date', models.DateTimeField(blank=True, null=True)),
  30. ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  31. ('tags', taggit.managers.TaggableManager(help_text='A comma-separated list of tags.', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='Tags')),
  32. ],
  33. ),
  34. ]