Commit f620ddf0 authored by Charles Lim's avatar Charles Lim

Fixed imports of announcements

parent 18a248ce
# Generated by Django 4.0.4 on 2022-05-23 16:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcement_board', '0004_announcement_announcement_pic'),
]
operations = [
migrations.AlterField(
model_name='announcement',
name='announcement_pic',
field=models.FileField(blank=True, null=True, upload_to='media/announcement_board'),
),
migrations.AlterField(
model_name='announcement',
name='pub_date',
field=models.DateField(auto_now_add=True),
),
]
from types import NoneType
from django.shortcuts import render from django.shortcuts import render
from django.views import View from django.views import View
from django.views.generic.detail import DetailView from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView from django.views.generic.edit import CreateView
from .models import Announcement, Reaction from .models import Announcement, Reaction
class AnnouncementView(View): class AnnouncementView(View):
def get(self, request): def get(self, request):
objects_set = { objects_set = {
......
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