improved codestyle, go back to == in requirements

This commit is contained in:
dadosch
2018-08-24 21:52:27 +02:00
parent 218e43fdf8
commit 91eee0b84a
5 changed files with 61 additions and 57 deletions

View File

@@ -5,7 +5,7 @@ from django.contrib import admin
from django.contrib.auth.models import User, Group
try:
from django.core.urlresolvers import reverse
except:
except ImportError:
from django.urls import reverse
from django.templatetags.static import static

View File

@@ -12,7 +12,7 @@ from fuzzywuzzy import fuzz
from django.conf import settings
try:
from django.core.urlresolvers import reverse
except:
except ImportError:
from django.urls import reverse
from django.db import models
from django.template.defaultfilters import slugify

View File

@@ -28,7 +28,9 @@ urlpatterns = [
# API
url(
r"^api/auth/",
include(('rest_framework.urls','rest_framework'), namespace="rest_framework")
include(
('rest_framework.urls', 'rest_framework'),
namespace="rest_framework")
),
url(r"^api/", include((router.urls, 'drf'), namespace="drf")),

View File

@@ -3,6 +3,8 @@ from django.db import models
class Reminder(models.Model):
document = models.ForeignKey("documents.Document",on_delete=models.DO_NOTHING)
document = models.ForeignKey(
"documents.Document", on_delete=models.DO_NOTHING
)
date = models.DateTimeField()
note = models.TextField(blank=True)