Skip to content
Snippets Groups Projects
  1. Sep 06, 2017
    • Benjamin Bertrand's avatar
      Replace hash with specific ICS Id (3 letters + 3 digits) · fe73933d
      Benjamin Bertrand authored
      The serial number might not be unique and can't be used
      as the string to hash.
      There are for example SD cards that all have the same SN.
      
      Using an ICS id allows to pre-print labels that can be assigned to
      hardware when scanning serial numbers.
      This id shall be easy to remember (unlike UUID).
      fe73933d
  2. Aug 18, 2017
  3. Jul 20, 2017
  4. Jul 19, 2017
    • Benjamin Bertrand's avatar
      Fix hash computation in admin view · 74437b80
      Benjamin Bertrand authored
      The hash is supposed to be computed in the __init__ method of Item.
      But flask-admin never passes any parameter when creating the model class.
      The attributes are changed after creation.
      
      When creating an item in the admin view, we use the on_model_change
      method to update the hash.
      
      There might be a better way to avoid this code duplication.
      This works for now.
      74437b80
    • Benjamin Bertrand's avatar
      Add QR Codes page · 380551d2
      Benjamin Bertrand authored
      380551d2
    • Benjamin Bertrand's avatar
      Initial commit · 5c62905e
      Benjamin Bertrand authored
      5c62905e
Loading