Buckets:
| from django.contrib import admin | |
| from .models import PoissonSimulation | |
| class PoissonSimulationAdmin(admin.ModelAdmin): | |
| list_display = ['name', 'status', 'source_type', 'mesh_nx', 'mesh_ny', | |
| 'solution_min', 'solution_max', 'computation_time', 'created_at'] | |
| list_filter = ['status', 'source_type', 'created_at'] | |
| search_fields = ['name'] | |
| readonly_fields = ['created_at', 'updated_at', 'result_data', 'mesh_data', | |
| 'animation_frames', 'solution_min', 'solution_max', 'computation_time'] | |
| fieldsets = ( | |
| ('Informations générales', { | |
| 'fields': ('name', 'status', 'created_at', 'updated_at') | |
| }), | |
| ('Domaine', { | |
| 'fields': ('domain_x_min', 'domain_x_max', 'domain_y_min', 'domain_y_max') | |
| }), | |
| ('Maillage', { | |
| 'fields': ('mesh_nx', 'mesh_ny') | |
| }), | |
| ('Terme source', { | |
| 'fields': ('source_type', 'source_amplitude', 'source_center_x', | |
| 'source_center_y', 'source_width', 'source_frequency') | |
| }), | |
| ('Conditions de Dirichlet', { | |
| 'fields': ('dirichlet_enabled', 'dirichlet_boundaries', 'dirichlet_value') | |
| }), | |
| ('Conditions de Neumann', { | |
| 'fields': ('neumann_enabled', 'neumann_boundaries', 'neumann_type', | |
| 'neumann_amplitude', 'neumann_frequency') | |
| }), | |
| ('Résultats', { | |
| 'fields': ('solution_min', 'solution_max', 'computation_time', 'error_message'), | |
| 'classes': ('collapse',) | |
| }), | |
| ) | |
Xet Storage Details
- Size:
- 1.62 kB
- Xet hash:
- 5a7a219d92f8a0a3aae4e0e2d3ea9f041a5ecaa09e3d91089e792ec20f8501ab
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.