Skip to content
Snippets Groups Projects
  1. Nov 15, 2017
  2. Nov 14, 2017
  3. Nov 13, 2017
    • Benjamin Bertrand's avatar
      Add Network/Host/Mac tables · eb988dba
      Benjamin Bertrand authored
      - A network defines an available range of IP addresses
      - A host defines an IP address and name
      - A host is always linked to a network
      - A mac address is always linked to an item (physical equipment)
      - A mac address can be linked to one host (IP)
      - An item can have several mac addresses
      eb988dba
  4. Nov 10, 2017
  5. Nov 07, 2017
  6. Nov 03, 2017
  7. Sep 25, 2017
  8. Sep 21, 2017
  9. Sep 17, 2017
  10. Sep 09, 2017
  11. Sep 06, 2017
  12. Aug 21, 2017
  13. Aug 18, 2017
  14. Aug 09, 2017
  15. Jul 20, 2017
  16. 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
      Fix admin view · aeaab0a7
      Benjamin Bertrand authored
      - restrict admin view to admin users only
      - the models shall only take optional parameters for flask-admin to work
      - the models shall implement the __str__ method to be displayed properly
        in the admin view
      aeaab0a7
    • Benjamin Bertrand's avatar
      Initial commit · 5c62905e
      Benjamin Bertrand authored
      5c62905e
Loading