Skip to content

Commit

Permalink
fixing files
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed May 30, 2024
1 parent 351d1de commit eb7c358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion care/facility/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from care.facility.models.asset import Asset
from care.facility.models.bed import AssetBed, Bed
from care.facility.models.file_upload import FileUpload
from care.facility.models.patient_consultation import PatientConsent
from care.facility.models.patient_consultation import (
PatientConsent,
PatientConsultation,
)
from care.facility.models.patient_sample import PatientSample
from care.facility.models.patient_tele_consultation import PatientTeleConsultation

Expand Down Expand Up @@ -215,3 +218,4 @@ class FacilityUserAdmin(DjangoQLSearchMixin, admin.ModelAdmin, ExportCsvMixin):
admin.site.register(Bed)
admin.site.register(PatientConsent)
admin.site.register(FileUpload)
admin.site.register(PatientConsultation)
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def migrate_consents(apps, schema_editor):

files.update(**kwargs)

new_consent.files.set(files)
new_consent.files.add(*files)

def reverse_migrate(apps, schema_editor):
PatientConsent: PatientConsentModel = apps.get_model(
Expand Down

0 comments on commit eb7c358

Please sign in to comment.