mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
#180: Added type and width fields to Rack model
This commit is contained in:
@ -27,6 +27,13 @@ def expand_pattern(string):
|
||||
yield "{}{}{}".format(lead, i, remnant)
|
||||
|
||||
|
||||
def add_blank_choice(choices):
|
||||
"""
|
||||
Add a blank choice to the beginning of a choices list.
|
||||
"""
|
||||
return ((None, '---------'),) + choices
|
||||
|
||||
|
||||
#
|
||||
# Widgets
|
||||
#
|
||||
|
Reference in New Issue
Block a user