Well, the question speaks for itself.

I thought about something like this, but it's not working.

```
class SystemAdmin(ModelAdmin):
    form = SystemAdminForm
    refresh()

    def refresh(self, request, obj):
    avahi = AvahiServiceDetector(self.update)

    def update(self, name, address, port):
        ip = IP.objects.get_or_create(address=address)

name 'refresh' is not defined

```