Files
d50ee5f90e Support 202401 (#1551)
* Add field ixf_ixp_import_enabled to object ixlan #1229
pdb_load_data no longer creates necessary org usergroups #1480
API list net documentation says "org" is a string, but it actually contains a dictionary #1438
Allow users to edit their objects Geocode #1464

* escape lat lng input

* only notify for `ok` facilities

linting

---------

Co-authored-by: 20C <[email protected]>
2024-02-20 14:37:44 -06:00

12 lines
345 B
Python

from django.db import models
class CustomManager(models.Manager):
def bulk_create(self, objs, **kwargs):
instance = super().bulk_create(objs)
for obj in instance:
models.signals.post_save.send(
sender=self.model, instance=obj, created=True, using="default"
)
return instance