summaryrefslogtreecommitdiff
path: root/app/normalize/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/normalize/models.py')
-rw-r--r--app/normalize/models.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/normalize/models.py b/app/normalize/models.py
new file mode 100644
index 0000000..ac36512
--- /dev/null
+++ b/app/normalize/models.py
@@ -0,0 +1,12 @@
+from django.db import models
+from django.contrib.contenttypes.models import ContentType
+
+
+class RelatedPost(models.Model):
+ model_name = models.ForeignKey(ContentType, null=True, on_delete=models.SET_NULL)
+ entry_id = models.IntegerField()
+ title = models.CharField(max_length=200)
+ slug = models.CharField(max_length=50)
+
+ def __str__(self):
+ return self.title