Add storage location field to battery with dynamic dropdown
Dropdown populated from existing distinct storage locations, with 'New location...' option revealing a text input.
This commit is contained in:
@@ -45,6 +45,7 @@ class Battery(Base):
|
||||
tested_date = Column(String(10), nullable=True) # YYYY-MM-DD of last test
|
||||
charge_cycles = Column(Integer, nullable=True) # number of charge cycles
|
||||
purchase_date = Column(String(10), nullable=True) # YYYY-MM-DD when purchased
|
||||
storage_location = Column(String(100), nullable=True) # where stored when not installed
|
||||
|
||||
device = relationship("Device", back_populates="batteries")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user