mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Remove troublesome code
This commit is contained in:
@@ -170,7 +170,7 @@ SITE_NAME = "Railroad Assets Manger"
|
||||
# The file must be placed in the root of the 'static' folder
|
||||
DEFAULT_CARD_IMAGE = "coming_soon.svg"
|
||||
|
||||
CSV_SEPARATOR = ","
|
||||
# Second level ALT separator for CSV files (e.g. for properties)
|
||||
CSV_SEPARATOR_ALT = ";"
|
||||
|
||||
DECODER_INTERFACES = [
|
||||
|
@@ -3,7 +3,6 @@ import csv
|
||||
import hashlib
|
||||
import subprocess
|
||||
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse
|
||||
from django.utils.html import format_html
|
||||
from django.utils.text import slugify as django_slugify
|
||||
@@ -62,7 +61,7 @@ def slugify(string, custom_separator=None):
|
||||
return string
|
||||
|
||||
|
||||
def generate_csv(header, data, filename, separator=settings.CSV_SEPARATOR):
|
||||
def generate_csv(header, data, filename):
|
||||
response = HttpResponse(content_type="text/csv")
|
||||
response["Content-Disposition"] = 'attachment; filename="{}"'.format(
|
||||
filename
|
||||
|
Reference in New Issue
Block a user