Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from noc.inv.models import *
- from noc.inv.models.object import *
- name = 'A'
- x = 1
- y = 2
- Object(
- name = name,
- model = 'PoP | Access',
- data = {"container": {"container": True},
- "geopoint":{
- "layer": "pop_access",
- "srid": "EPSG:4326",
- "x": x,
- "y": y},
- "pop":{"level": 20}}
- ).save
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement