Skip to content

Commit

Permalink
Merge pull request #866 from FJNR-inc/develop
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
RignonNoel authored Jan 22, 2021
2 parents af2f3e3 + d6c61ce commit 9a6daec
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion blitz_api/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
'safedelete',
'import_export',
'django_filters',
'admin_auto_filters'
'admin_auto_filters',
'django_admin_inline_paginator',
]

MIDDLEWARE = [
Expand Down
4 changes: 3 additions & 1 deletion cron_manager/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@

from . import models
from django.utils.translation import ugettext_lazy as _
from django_admin_inline_paginator.admin import TabularInlinePaginated


class TaskFilter(AutocompleteFilter):
title = 'Task'
field_name = 'task'


class ExecutionInline(admin.StackedInline):
class ExecutionInline(TabularInlinePaginated):
model = models.Execution
can_delete = True
show_change_link = True
verbose_name_plural = _('Executions')
fk_name = 'task'
readonly_fields = ('created_at',)
max_num = 10
per_page = 5


class TaskAdmin(admin.ModelAdmin):
Expand Down
4 changes: 3 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ tqdm==4.54.1
colorama==0.4.4
django-admin-autocomplete-filter==0.6.1
mailchimp3==3.0.14
babel==2.9.0
babel==2.9.0

django-admin-inline-paginator==0.1.1
6 changes: 6 additions & 0 deletions store/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class Meta:
'item_id',
'quantity',
'order',
'coupon',
'coupon_real_value',
'cost',
)
export_order = (
'id',
Expand All @@ -125,6 +128,9 @@ class Meta:
'item_id',
'quantity',
'order',
'coupon',
'coupon_real_value',
'cost',
)


Expand Down
7 changes: 0 additions & 7 deletions store/tests/tests_viewset_Order.py
Original file line number Diff line number Diff line change
Expand Up @@ -3374,13 +3374,6 @@ def test_validate_coupon(self):
)

content = {
'orderline': {
'content_type': 'package',
'object_id': self.package.id,
'quantity': 2,
'metadata': None,
'options': []
},
'value': 10.0
}

Expand Down

0 comments on commit 9a6daec

Please sign in to comment.