saxix / django-adminactions

Compare 338a6c5 ... +1 ... 93a661f

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 7 of 30 files from the diff.

@@ -58,16 +58,4 @@
Loading
58 58
59 59
    header = forms.BooleanField(label=_('Header'), required=False)
60 60
    use_display = forms.BooleanField(label=_('Use display'), required=False)
61 -
    # delimiter = forms.ChoiceField(choices=zip(delimiters, delimiters), initial=',')
62 -
    # quotechar = forms.ChoiceField(choices=zip(quotes, quotes), initial="'")
63 -
    # quoting = forms.ChoiceField(
64 -
    #     choices=((csv.QUOTE_ALL, 'All'),
65 -
    #              (csv.QUOTE_MINIMAL, 'Minimal'),
66 -
    #              (csv.QUOTE_NONE, 'None'),
67 -
    #              (csv.QUOTE_NONNUMERIC, 'Non Numeric')), initial=csv.QUOTE_ALL)
68 -
    #
69 -
    # escapechar = forms.ChoiceField(choices=(('', ''), ('\\', '\\')), required=False)
70 -
    # datetime_format = forms.CharField(initial=formats.get_format('DATETIME_FORMAT'))
71 -
    # date_format = forms.CharField(initial=formats.get_format('DATE_FORMAT'))
72 -
    # time_format = forms.CharField(initial=formats.get_format('TIME_FORMAT'))
73 61
    columns = forms.MultipleChoiceField(label=_('Columns'), widget=SelectMultiple(attrs={'size': 20}))

@@ -30,12 +30,6 @@
Loading
30 30
    dependencies = forms.ChoiceField(label=_('Dependencies'),
31 31
                                     choices=((DEP_MOVE, _("Move")), (DEP_DELETE, _("Delete"))))
32 32
33 -
    # generic = forms.ChoiceField(label=_('Search GenericForeignKeys'),
34 -
    #                             help_text=_("Search for generic relation"),
35 -
    #                             choices=((GEN_IGNORE, _("No")),
36 -
    #                                      (GEN_RELATED, _("Only Related (look for Managers)")),
37 -
    #                                      (GEN_DEEP, _("Analyze Mode (very slow)"))))
38 -
39 33
    master_pk = forms.CharField(widget=HiddenInput)
40 34
    other_pk = forms.CharField(widget=HiddenInput)
41 35
    field_names = forms.CharField(required=False, widget=HiddenInput)
@@ -128,7 +122,6 @@
Loading
128 122
                return (False, merge_form, merge_kwargs)
129 123
130 124
    tpl = 'adminactions/merge.html'
131 -
    # transaction_supported = model_supports_transactions(modeladmin.model)
132 125
    ignored_fields = get_ignored_fields(queryset.model, "MERGE_ACTION_IGNORED_FIELDS")
133 126
134 127
    ctx = {

@@ -134,10 +134,6 @@
Loading
134 134
    if isinstance(value, models.Model):
135 135
        return smart_str(value)
136 136
137 -
    # if isinstance(obj, Model):
138 -
    #     field = get_field_by_path(obj, fieldname)
139 -
    #     if isinstance(field, ForeignKey):
140 -
    #         return unicode(value)
141 137
    if isinstance(value, str):
142 138
        value = smart_str(value)
143 139

@@ -58,7 +58,6 @@
Loading
58 58
    if related == ALL_FIELDS:
59 59
        related = [rel.get_accessor_name()
60 60
                   for rel in utils.get_all_related_objects(master)]
61 -
    # for rel in master._meta.get_all_related_objects(False, False, False)]
62 61
63 62
    if m2m == ALL_FIELDS:
64 63
        m2m = set()
@@ -269,8 +268,6 @@
Loading
269 268
                    formats[i] = fmt
270 269
                except FieldDoesNotExist:
271 270
                    pass
272 -
                    # styles[i] = xlwt.easyxf(num_format_str=xls_options_default.get(col_class, 'general'))
273 -
                    # styles[i] = xls_options_default.get(col_class, 'general')
274 271
275 272
        return formats
276 273
@@ -393,20 +390,11 @@
Loading
393 390
                    formats[fieldname] = fmt
394 391
                except FieldDoesNotExist:
395 392
                    pass
396 -
                    # styles[i] = xlwt.easyxf(num_format_str=xls_options_default.get(col_class, 'general'))
397 -
                    # styles[i] = xls_options_default.get(col_class, 'general')
398 -
399 393
        return formats
400 394
401 395
    http_response = out is None
402 396
    if out is None:
403 -
        # if filename is None:
404 -
        # filename = filename or "%s.xls" % queryset.model._meta.verbose_name_plural.lower().replace(" ", "_")
405 -
        # response = HttpResponse(content_type='application/vnd.ms-excel')
406 -
        # response['Content-Disposition'] = 'attachment;filename="%s"' % filename.encode('us-ascii', 'replace')
407 397
        out = BytesIO()
408 -
        #
409 -
        # out = StringIO()
410 398
411 399
    config = xlsxwriter_options.copy()
412 400
    if options:

@@ -5,8 +5,5 @@
Loading
5 5
6 6
@register.tag
7 7
def url(parser, token):
8 -
    # try:
9 -
    #     from django.templatetags.future import url as _url
10 -
    # except:
11 8
    from django.template.defaulttags import url as _url
12 9
    return _url(parser, token)

Click to load this diff.
Loading diff...

Click to load this diff.
Loading diff...

Everything is accounted for!

No changes detected that need to be reviewed.
What changes does Codecov check for?
Lines, not adjusted in diff, that have changed coverage data.
Files that introduced coverage data that had none before.
Files that have missing coverage data that once were tracked.
Files Coverage
src/adminactions 84.84%
Project Totals (23 files) 84.84%
Loading