Skip to content

Releases: OfficineArduinoTorino/LabAdmin

0.4.3

26 Jan 18:01
Compare
Choose a tag to compare

Highlight of the release are returning an error status code if the the card does not have permissions to open a door.

0.4.2

16 Jan 09:52
Compare
Choose a tag to compare

This release fixed taking into account the subscription date when checking for user permissions. All users should upgrade.

0.4.1

31 May 12:59
Compare
Choose a tag to compare

This releases fixes a brown paper bug in the userprofile page not showing the user credits.

0.4.0

24 May 10:09
Compare
Choose a tag to compare

This release requires running migrations and updating LabAdmin configurations.

configuration changes

versatileimagefield should be added to the INSTALLED_APPS in settings.py:

INSTALLED_APPS = [
   # ...
    'versatileimagefield',
]

Device user codes

We''ve added the possibility to use a device specific code to authorize a user with a specified Device. This is handly when your device can't be authorised using the nfc card or your nfc readers disagree on the id of the very same card.

These codes may be added from the UserProfile admin page.

The API for opening doors and using devices have been extended to support a code parameter in alternative to nfc_id. The code expect a string.

Pictures in user profile

User may now upload pictures in their userprofile.

0.3.0

24 May 10:00
Compare
Choose a tag to compare

This release requires running migrations and updating your settings.py.

configuration changes

settings.py

django.contrib.sites should be added in INSTALLED_APPS:

INSTALLED_APPS = [
     # ...
    'django.contrib.sites',
     # ...

And the following settings should be added too:

LOGIN_REDIRECT_URL = 'labadmin-user-profile'

# how many days the registration link will be valid
ACCOUNT_ACTIVATION_DAYS = 2

# id of default django.contrib.site.models.Site
SITE_ID = 1

# email will be sent with this address in the from field
DEFAULT_FROM_EMAIL = '[email protected]'

urls.py

The django-registration urls should be added to the project urls.py:

    url(r'^accounts/', include('registration.backends.hmac.urls')),

User registration workflow

This release permits users to register themselves and add fill their profile informations. The feature requires a working local smtp server, instructions for postfix are available in the tutorial.

0.2.0

24 May 09:51
Compare
Choose a tag to compare

This relases requires running migrations

Device sketches rendering

Sketches templates may be added to the admin and then downloaded rendered. Each sketch template is rendered with the following context:

  • user, the UserProfile instance
  • device, the Device instance

e.g. to render the device token in a sketch use {{ device.token }}

After you have created a Sketch to render a template go to the device admin page. First select a device then select a sketch from the actions form finally use the 'render sketch for device' action
labadmin-render-sketch

https://cloud.githubusercontent.com/assets/12932/23504403/96a38b36-ff3f-11e6-8d4f-09e1755157de.png