Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
refactor: upgrade django to 3.0.8 and upgrade it's dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
satya7289 committed Jul 21, 2020
1 parent 39ddb4d commit 67a0fde
Show file tree
Hide file tree
Showing 70 changed files with 649 additions and 1,364 deletions.
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ pytest-cov==2.5.1
pytest-django==3.2.1
pytest-pylint==0.9.0
selenium==3.12.0
djangorestframework==3.8.2
djangorestframework==3.11.0
geopy==1.15.0
pinax-notifications==5.0.3
pinax-notifications==6.0.0
16 changes: 8 additions & 8 deletions requirements/prod.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Django==1.11.29
Pillow==4.3.0
django-allauth==0.33.0
django-braces==1.11.0
django-cities-light==3.3.0
django-ckeditor==5.3.1
django-crispy-forms==1.7.0
django-guardian==1.4.9
Django==3.0.8
Pillow==7.2.0
django-allauth==0.42.0
django-braces==1.14.0
django-cities-light==3.6.0
django-ckeditor==5.9.0
django-crispy-forms==1.9.2
django-guardian==2.3.0
django-imagekit==4.0.1
psycopg2==2.7.3.2
python3-openid==3.1.0
Expand Down
83 changes: 25 additions & 58 deletions systers_portal/blog/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,91 +1,58 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
# Generated by Django 2.0 on 2020-07-08 16:09

from django.db import models, migrations
import ckeditor.fields
from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
('community', '0001_initial'),
('users', '0001_squashed_0003_auto_20160207_1550'),
]

operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('slug', models.SlugField(unique=True, max_length=150, verbose_name=b'Slug')),
('title', models.CharField(max_length=255, verbose_name=b'Title')),
('date_created', models.DateField(auto_now_add=True, verbose_name=b'Date published')),
('date_modified', models.DateField(auto_now=True, verbose_name=b'Date last modified')),
('content', models.TextField(verbose_name=b'Content')),
('is_public', models.BooleanField(default=True, verbose_name=b'Is public')),
('is_monitored', models.BooleanField(default=False, verbose_name=b'Is monitored')),
('author', models.ForeignKey(verbose_name=b'Author', to='users.SystersUser')),
('community', models.ForeignKey(verbose_name=b'Community', to='community.Community')),
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('slug', models.SlugField(max_length=150, verbose_name='Slug')),
('title', models.CharField(max_length=255, verbose_name='Title')),
('date_created', models.DateField(auto_now_add=True, verbose_name='Date published')),
('date_modified', models.DateField(auto_now=True, verbose_name='Date last modified')),
('content', ckeditor.fields.RichTextField(verbose_name='Content')),
('is_public', models.BooleanField(default=True, verbose_name='Is public')),
('is_monitored', models.BooleanField(default=False, verbose_name='Is monitored')),
],
options={
'verbose_name_plural': 'News',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Resource',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('slug', models.SlugField(unique=True, max_length=150, verbose_name=b'Slug')),
('title', models.CharField(max_length=255, verbose_name=b'Title')),
('date_created', models.DateField(auto_now_add=True, verbose_name=b'Date published')),
('date_modified', models.DateField(auto_now=True, verbose_name=b'Date last modified')),
('content', models.TextField(verbose_name=b'Content')),
('is_public', models.BooleanField(default=True, verbose_name=b'Is public')),
('is_monitored', models.BooleanField(default=False, verbose_name=b'Is monitored')),
('author', models.ForeignKey(verbose_name=b'Author', to='users.SystersUser')),
('community', models.ForeignKey(verbose_name=b'Community', to='community.Community')),
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('slug', models.SlugField(max_length=150, verbose_name='Slug')),
('title', models.CharField(max_length=255, verbose_name='Title')),
('date_created', models.DateField(auto_now_add=True, verbose_name='Date published')),
('date_modified', models.DateField(auto_now=True, verbose_name='Date last modified')),
('content', ckeditor.fields.RichTextField(verbose_name='Content')),
('is_public', models.BooleanField(default=True, verbose_name='Is public')),
('is_monitored', models.BooleanField(default=False, verbose_name='Is monitored')),
],
options={
'abstract': False,
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ResourceType',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255)),
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, unique=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Tag',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255)),
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, unique=True)),
],
options={
},
bases=(models.Model,),
),
migrations.AddField(
model_name='resource',
name='resource_type',
field=models.ForeignKey(verbose_name=b'Resource type', blank=True, to='blog.ResourceType', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='resource',
name='tags',
field=models.ManyToManyField(to='blog.Tag', null=True, verbose_name=b'Tags', blank=True),
preserve_default=True,
),
migrations.AddField(
model_name='news',
name='tags',
field=models.ManyToManyField(to='blog.Tag', null=True, verbose_name=b'Tags', blank=True),
preserve_default=True,
),
]
25 changes: 0 additions & 25 deletions systers_portal/blog/migrations/0002_auto_20140928_2034.py

This file was deleted.

61 changes: 61 additions & 0 deletions systers_portal/blog/migrations/0002_auto_20200708_1609.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Generated by Django 2.0 on 2020-07-08 16:09

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

initial = True

dependencies = [
('blog', '0001_initial'),
('users', '0001_initial'),
('community', '0001_initial'),
]

operations = [
migrations.AddField(
model_name='resource',
name='author',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.SystersUser', verbose_name='Author'),
),
migrations.AddField(
model_name='resource',
name='community',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='community.Community', verbose_name='Community'),
),
migrations.AddField(
model_name='resource',
name='resource_type',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='blog.ResourceType', verbose_name='Resource type'),
),
migrations.AddField(
model_name='resource',
name='tags',
field=models.ManyToManyField(blank=True, to='blog.Tag', verbose_name='Tags'),
),
migrations.AddField(
model_name='news',
name='author',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='users.SystersUser', verbose_name='Author'),
),
migrations.AddField(
model_name='news',
name='community',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='community.Community', verbose_name='Community'),
),
migrations.AddField(
model_name='news',
name='tags',
field=models.ManyToManyField(blank=True, to='blog.Tag', verbose_name='Tags'),
),
migrations.AlterUniqueTogether(
name='resource',
unique_together={('community', 'slug')},
),
migrations.AlterUniqueTogether(
name='news',
unique_together={('community', 'slug')},
),
]
26 changes: 0 additions & 26 deletions systers_portal/blog/migrations/0003_auto_20150303_0501.py

This file was deleted.

Loading

0 comments on commit 67a0fde

Please sign in to comment.