Skip to content
Snippets Groups Projects
  1. Dec 22, 2017
  2. Dec 21, 2017
  3. Dec 19, 2017
    • Benjamin Bertrand's avatar
      Add Unique validator · 29c556bf
      Benjamin Bertrand authored
      To check if the unique object is the one being edited, we need to store
      the object used to create the form in the form (_obj).
      This is inspired from flask-admin.
      29c556bf
  4. Dec 18, 2017
    • Benjamin Bertrand's avatar
      Define temporary ICS id that can be changed · fd3109c4
      Benjamin Bertrand authored
      It shouldn't be possible to change the ICS id of an item.
      But when registering a bunch of existing items via the API, we need to
      allocate an ics_id otherwise not much can be done in the interface.
      The id is required for the view and edit page.
      
      The solution is to define some "temporary" ids that don't correspond to
      any pre-printed labels.
      Items with a temporary id can be assigned a real ics_id when assigning a
      label.
      
      Reserved ids start with 'ZZ' (from ZZA000 to ZZZ999)
      
      ICS id can now be non nullable.
      fd3109c4
Loading