black is a colour

This commit is contained in:
Yohan Boniface 2023-05-11 11:33:30 +02:00
parent 1038836a72
commit e3d5bd794f

View file

@ -141,7 +141,6 @@ home = Home.as_view()
class About(Home): class About(Home):
template_name = "umap/about.html" template_name = "umap/about.html"
@ -353,7 +352,6 @@ class FormLessEditMixin:
class MapDetailMixin: class MapDetailMixin:
model = Map model = Map
def get_context_data(self, **kwargs): def get_context_data(self, **kwargs):
@ -650,7 +648,6 @@ class MapShortUrl(RedirectView):
class MapAnonymousEditUrl(RedirectView): class MapAnonymousEditUrl(RedirectView):
permanent = False permanent = False
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
@ -658,7 +655,7 @@ class MapAnonymousEditUrl(RedirectView):
try: try:
pk = signer.unsign(self.kwargs["signature"]) pk = signer.unsign(self.kwargs["signature"])
except BadSignature: except BadSignature:
signer = Signer(algorithm='sha1') signer = Signer(algorithm="sha1")
try: try:
pk = signer.unsign(self.kwargs["signature"]) pk = signer.unsign(self.kwargs["signature"])
except BadSignature: except BadSignature:
@ -681,7 +678,6 @@ class MapAnonymousEditUrl(RedirectView):
class GZipMixin(object): class GZipMixin(object):
EXT = ".gz" EXT = ".gz"
@property @property