             @change_hints_state = false
             super @template
 
+
+        get_currently_pinned: ->
+            # Grab pinned machines for this shard
+            currently_pinned = _.find @namespace.get('secondary_pinnings'), (pins, shard) =>
+                return JSON.stringify(@secondary.shard) is JSON.stringify(shard)
+            # Filter out the ones for our datacenter, since we're changing them
+            currently_pinned = _.filter currently_pinned, (uuid) =>
+                return machines.get(uuid).get('datacenter_uuid') isnt @secondary.datacenter_uuid
+            return currently_pinned
+
         disable_used_options: ->
             # Make sure the same machine cannot be selected
             # twice. Also disable the machine used for the master.

            directory.on 'all', @render
            @shards = []

        render: =>
            log_render '(rendering) namespace view: shards'



            # Bind events to 'assign machine' links
            for shard in shards_array
                @bind_edit_machines(shard)

            return @

