-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: lol I didn't even have flake8 installed
- Loading branch information
Showing
5 changed files
with
13 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
from django.conf import settings | ||
from django.contrib import admin | ||
from django.contrib.auth.models import Permission | ||
from django.shortcuts import redirect | ||
from django.urls import reverse | ||
|
||
from announcements.models import ( | ||
Audience, | ||
Announcement | ||
) | ||
from announcements.models import Audience, Announcement | ||
|
||
admin.site.register(Audience) | ||
admin.site.register(Announcement) |
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
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from rest_framework import serializers | ||
from announcements.models import Announcement, Audience | ||
|
||
class AudienceSerializer(serializers.ModelSerializer): | ||
|
||
class AudienceSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Audience | ||
fields = "__all__" | ||
|
||
class AnnouncementSerializer(serializers.ModelSerializer): | ||
|
||
class AnnouncementSerializer(serializers.ModelSerializer): | ||
class Meta: | ||
model = Announcement | ||
fields = "__all__" |
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