-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from 2077-Collective/feat/sponsored-articles
Feat/sponsored articles
- Loading branch information
Showing
10 changed files
with
130 additions
and
4 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
28 changes: 28 additions & 0 deletions
28
server/apps/research/migrations/0006_article_is_sponsored_article_sponsor_color_and_more.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,28 @@ | ||
# Generated by Django 5.0.8 on 2024-10-23 08:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0005_article_table_of_contents'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='article', | ||
name='is_sponsored', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='article', | ||
name='sponsor_color', | ||
field=models.CharField(default='#FF0420', max_length=7), | ||
), | ||
migrations.AddField( | ||
model_name='article', | ||
name='sponsor_text_color', | ||
field=models.CharField(default='#000000', max_length=7), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
server/apps/research/migrations/0007_alter_article_sponsor_color_and_more.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,23 @@ | ||
# Generated by Django 5.0.8 on 2024-10-23 10:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0006_article_is_sponsored_article_sponsor_color_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_color', | ||
field=models.CharField(default='#FF0420 !important', max_length=7), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_text_color', | ||
field=models.CharField(default='#000000 !important', max_length=7), | ||
), | ||
] |
23 changes: 23 additions & 0 deletions
23
server/apps/research/migrations/0008_alter_article_sponsor_color_and_more.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,23 @@ | ||
# Generated by Django 5.0.8 on 2024-10-23 10:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0007_alter_article_sponsor_color_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_color', | ||
field=models.CharField(default='bg-red-700 !important', max_length=7), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_text_color', | ||
field=models.CharField(default='#bg-gray-700 !important', max_length=7), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
server/apps/research/migrations/0009_alter_article_sponsor_text_color.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 5.0.8 on 2024-10-23 10:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0008_alter_article_sponsor_color_and_more'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_text_color', | ||
field=models.CharField(default='text-gray-700 !important', max_length=7), | ||
), | ||
] |
28 changes: 28 additions & 0 deletions
28
.../research/migrations/0010_article_sponsor_padding_alter_article_sponsor_color_and_more.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,28 @@ | ||
# Generated by Django 5.0.8 on 2024-10-23 11:20 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('research', '0009_alter_article_sponsor_text_color'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='article', | ||
name='sponsor_padding', | ||
field=models.CharField(default='px-4 py-6', max_length=20), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_color', | ||
field=models.CharField(default='#FF0420', max_length=7), | ||
), | ||
migrations.AlterField( | ||
model_name='article', | ||
name='sponsor_text_color', | ||
field=models.CharField(default='#000000', max_length=7), | ||
), | ||
] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.