diff --git a/.travis.yml b/.travis.yml index 96f7843..e8d90c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ - +dist: xenial language: python python: - "3.6" @@ -7,4 +7,5 @@ install: script: - python manage.py makemigrations questions - python manage.py migrate - - python manage.py test \ No newline at end of file + - python manage.py test + diff --git a/questions/admin.py b/questions/admin.py index 6723db8..4b92045 100644 --- a/questions/admin.py +++ b/questions/admin.py @@ -1,5 +1,10 @@ from django.contrib import admin from .models import * -admin.site.register(Topic) -admin.site.register(Type) \ No newline at end of file + +class SnippetAdmin(admin.ModelAdmin): + change_list_template = 'admin/questions/login.html' + + +admin.site.register(Topic, SnippetAdmin) +admin.site.register(Type, SnippetAdmin) diff --git a/questions/static/questions/logo_light.png b/questions/static/questions/logo_light.png new file mode 100644 index 0000000..a8c7ff8 Binary files /dev/null and b/questions/static/questions/logo_light.png differ diff --git a/questions/templates/admin/login.html b/questions/templates/admin/login.html new file mode 100644 index 0000000..f789e3a --- /dev/null +++ b/questions/templates/admin/login.html @@ -0,0 +1,84 @@ +{% extends "admin/login.html" %} +{% load i18n static %} + +{% load static %} + +{% block footer %} + +
+{% endblock %} +{% block script %} + + + +{% endblock %} + + + +{% block branding %} + + +