mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Run black
This commit is contained in:
@@ -14,14 +14,16 @@ class SiteConfiguration(SingletonModel):
|
||||
items_per_page = models.CharField(
|
||||
max_length=2,
|
||||
choices=[(str(x * 3), str(x * 3)) for x in range(2, 11)],
|
||||
default="6"
|
||||
default="6",
|
||||
)
|
||||
items_ordering = models.CharField(
|
||||
max_length=10,
|
||||
choices=[("type", "By rolling stock type"),
|
||||
("company", "By company name"),
|
||||
("identifier", "By rolling stock class")],
|
||||
default="type"
|
||||
choices=[
|
||||
("type", "By rolling stock type"),
|
||||
("company", "By company name"),
|
||||
("identifier", "By rolling stock class"),
|
||||
],
|
||||
default="type",
|
||||
)
|
||||
footer = models.TextField(blank=True)
|
||||
footer_extended = models.TextField(blank=True)
|
||||
|
@@ -24,8 +24,7 @@ urlpatterns = [
|
||||
),
|
||||
path("consists", Consists.as_view(), name="consists"),
|
||||
path(
|
||||
"consists/<int:page>",
|
||||
Consists.as_view(), name="consists_pagination"
|
||||
"consists/<int:page>", Consists.as_view(), name="consists_pagination"
|
||||
),
|
||||
path("consist/<uuid:uuid>", GetConsist.as_view(), name="consist"),
|
||||
path(
|
||||
|
@@ -170,7 +170,7 @@ class Consists(View):
|
||||
return render(
|
||||
request,
|
||||
"consists.html",
|
||||
{"consist": consist, "page_range": page_range}
|
||||
{"consist": consist, "page_range": page_range},
|
||||
)
|
||||
|
||||
|
||||
@@ -193,6 +193,6 @@ class GetConsist(View):
|
||||
{
|
||||
"consist": consist,
|
||||
"rolling_stock": rolling_stock,
|
||||
"page_range": page_range
|
||||
"page_range": page_range,
|
||||
},
|
||||
)
|
||||
|
Reference in New Issue
Block a user