Parcourir la source

Merge branch 'master' of ssh://code.ffdn.org:55555/tetaneutral.net/djadhere

Élie Bouttier il y a 6 ans
Parent
commit
e5bc1ed860
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      services/admin.py

+ 1 - 1
services/admin.py

@@ -397,7 +397,7 @@ class IPResourceAdmin(admin.ModelAdmin):
             fields += ['last_use']
             fields += ['last_use']
         if obj and obj.last_time_up and obj.last_check:
         if obj and obj.last_time_up and obj.last_check:
             fields += ['last_time_up', 'last_check']
             fields += ['last_time_up', 'last_check']
-        if obj.category == IPRessource.CATEGORY_PUBLIC:
+        if obj.category == IPResource.CATEGORY_PUBLIC:
             fields += ['password']
             fields += ['password']
         if obj and obj.checkmk_label:
         if obj and obj.checkmk_label:
             fields += ['checkmk']
             fields += ['checkmk']