Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
cms-model-cleanup
Browse files Browse the repository at this point in the history
 -[x] removed topics from library
 -[x] removed language from library
  • Loading branch information
sonikabaniya committed Apr 6, 2021
1 parent 863e5e9 commit 39f979e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
21 changes: 21 additions & 0 deletions content/migrations/0047_auto_20210405_1123.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 3.1.7 on 2021-04-05 11:23

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('content', '0046_auto_20210401_0016'),
]

operations = [
migrations.RemoveField(
model_name='resourcespage',
name='language',
),
migrations.RemoveField(
model_name='resourcespage',
name='topic',
),
]
6 changes: 0 additions & 6 deletions content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ def rendered_description(self):

link = models.URLField(max_length=10000, null=True, blank=True)

language = models.CharField(max_length=2000, null=True, blank=True)
lang = models.ForeignKey(Language, on_delete=models.PROTECT, blank=False, null=False)
topic = models.CharField(max_length=2000, null=True, blank=True)
topics = models.ForeignKey(Topic, on_delete=models.SET_NULL, blank=True, null=True)

published_date = models.DateField("Published date")
Expand All @@ -201,9 +199,7 @@ def rendered_description(self):
FieldPanel("country"),
DocumentChooserPanel("document"),
FieldPanel("link"),
FieldPanel("language"),
FieldPanel("lang"),
FieldPanel("topic"),
FieldPanel("topics"),
FieldPanel("published_date"),
FieldPanel("author", classname="full"),
Expand All @@ -215,9 +211,7 @@ def rendered_description(self):
APIField("country"),
APIField("document"),
APIField("link"),
APIField("language"),
APIField("lang"),
APIField("topic"),
APIField("topics"),
APIField("published_date"),
APIField("author"),
Expand Down

0 comments on commit 39f979e

Please sign in to comment.