mirror of
https://github.com/peeringdb/peeringdb.git
synced 2024-05-11 05:55:09 +00:00
* 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]>
12 lines
345 B
Python
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
|