This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Merge pull request #692 from OkunaOrg/feature/257-tre…
…nding-communities-n-posts-rehaul"" This reverts commit 05ae2a4.
- Loading branch information
Showing
29 changed files
with
1,119 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 2.2.5 on 2020-02-03 14:10 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openbook_communities', '0033_auto_20191209_1337'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TrendingCommunity', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('created', models.DateTimeField(db_index=True, editable=False)), | ||
('community', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='trending_community', to='openbook_communities.Community')), | ||
], | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
openbook_communities/migrations/0035_community_activity_score.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.5 on 2020-02-10 12:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openbook_communities', '0034_trendingcommunity'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='community', | ||
name='activity_score', | ||
field=models.FloatField(default=0.0), | ||
), | ||
] |
16 changes: 16 additions & 0 deletions
16
openbook_communities/migrations/0036_delete_trendingcommunity.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Generated by Django 2.2.5 on 2020-02-22 11:49 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openbook_communities', '0035_community_activity_score'), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name='TrendingCommunity', | ||
), | ||
] |
17 changes: 17 additions & 0 deletions
17
openbook_communities/migrations/0037_auto_20200222_1344.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.5 on 2020-02-22 12:44 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openbook_communities', '0036_delete_trendingcommunity'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='community', | ||
index=models.Index(fields=['activity_score'], name='openbook_co_activit_07d4ba_idx'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
openbook_communities/migrations/0038_auto_20200224_1615.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.5 on 2020-02-24 15:15 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('openbook_communities', '0037_auto_20200222_1344'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='community', | ||
name='activity_score', | ||
field=models.DecimalField(decimal_places=10, default=0.0, max_digits=10), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.