cleanup in news/

This commit is contained in:
Stephan Telling 2018-03-04 15:51:33 +01:00
parent aac89c0a9c
commit e482501d7b
4 changed files with 2 additions and 8 deletions

View file

@ -1,5 +1,3 @@
from django.apps import AppConfig from django.apps import AppConfig

View file

@ -1,5 +1,3 @@
from django.db import models from django.db import models
from django.utils import encoding from django.utils import encoding
from django.utils.text import slugify from django.utils.text import slugify

View file

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.

View file

@ -1,6 +1,7 @@
from django.views.generic import ListView, DetailView from django.views.generic import ListView, DetailView
from django.utils import timezone from django.utils import timezone
from .models import * from .models import NewsItem
class NewsIndex(ListView): class NewsIndex(ListView):
model = NewsItem model = NewsItem