()
| 17 | |
| 18 | |
| 19 | def instance_identifier(): |
| 20 | from explorer.models import ExplorerValue |
| 21 | key = "explorer_instance_uuid" |
| 22 | r = cache.get(key) |
| 23 | if not r: |
| 24 | r = ExplorerValue.objects.get_uuid() |
| 25 | cache.set(key, r, 60 * 60 * 24) |
| 26 | return r |
| 27 | |
| 28 | |
| 29 | class SelfNamedEnum(Enum): |