Commit 0c110cb0 authored by Chino Tesoro's avatar Chino Tesoro

fixed bugs and removed the reactions class from forums (for real this time)

parent ca4279b4
# Generated by Django 4.0.3 on 2022-03-23 12:25
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forum', '0002_alter_post_post_body_alter_post_post_title_and_more'),
]
operations = [
migrations.DeleteModel(
name='Reaction',
),
]
......@@ -6,8 +6,3 @@ class Post (models.Model):
post_body = models.CharField(max_length=99999)
pub_date = models.DateTimeField("date published")
\ No newline at end of file
class Reaction (models.Model):
post = models.ForeignKey(Post, on_delete=models.CASCADE)
reaction_name = models.CharField(max_length=99999)
tally = models.IntegerField(default=0)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment