Add RRO, portal section perms, dislocation presets, and hiring intern flow.
Ship cash-register registry, section-based portal access, configurable dislocation columns, and trial-hire intern accounts with credentials PDF.
This commit is contained in:
+11
-1
@@ -9,7 +9,7 @@ from unfold.admin import ModelAdmin, TabularInline
|
||||
from import_export.admin import ImportExportModelAdmin
|
||||
from unfold.contrib.import_export.forms import ExportForm, ImportForm
|
||||
from core.models import Directory
|
||||
from .models import Location, Pharmacy, PharmacyPhone, PharmacyHistory
|
||||
from .models import Location, Pharmacy, PharmacyPhone, PharmacyHistory, DislocationColumnPreset
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -388,3 +388,13 @@ class PharmacyAdmin(ModelAdmin, ImportExportModelAdmin):
|
||||
return '—'
|
||||
return mark_safe('<br>'.join(numbers))
|
||||
phone_numbers_display.short_description = _('Телефоны')
|
||||
|
||||
|
||||
@admin.register(DislocationColumnPreset)
|
||||
class DislocationColumnPresetAdmin(ModelAdmin):
|
||||
list_display = ['name', 'code', 'is_default', 'department', 'updated_at']
|
||||
list_filter = ['is_default']
|
||||
search_fields = ['name', 'code']
|
||||
list_select_related = ['department']
|
||||
ordering = ['name']
|
||||
readonly_fields = ['created_at', 'updated_at', 'uuid']
|
||||
|
||||
Reference in New Issue
Block a user