sqrl.managers module

class sqrl.managers.SQRLNutManager[source]

Bases: django.db.models.manager.Manager

Customer models.SQRLNut model manager.

replace_or_create(session_key, **kwargs)[source]

This method creates new models.SQRLNut with given parameters.

If nut already exists, it removes it before creating new nut.

  • session_key (str) – Key of the session. All nuts with matching session will be removed.
  • **kwargs – Kwargs which will be used to create new models.SQRLNut