DJ modely a signály
Definice modelů a signálu.
- class dj.models.DokumentacniJednotka(*args, **kwargs)
Class pro db model dokumentační jednotky.
- get_absolute_url()
Metóda pro získaní absolute url pro arch záznam pro dokumentační jednotku.
- has_adb()
Metóda pro ověření jestli dokumentační jednotka má ADB.
- refresh_from_db(using=None, fields=None, from_queryset=None)
Reload field values from the database.
By default, the reloading happens from the database this instance was loaded from, or by the read router if this instance wasn’t loaded from any database. The using parameter will override the default.
Fields can be used to specify which fields to reload. The fields should be an iterable of field attnames. If fields is None, then all non-deferred fields are reloaded.
When accessing deferred fields of an instance, the deferred loading of the field will call this method.
- save_base(raw=False, force_insert=False, force_update=False, using=None, update_fields=None)
Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too. This includes some sanity checks and signal sending.
The ‚raw‘ argument is telling save_base not to save any parent models and not to do any changes to the values before save. This is used by fixture loading.
- dj.signals.save_dokumentacni_jednotka(sender, instance: DokumentacniJednotka, created, **kwargs)
Metóda pro vytvoření pianu z katastru arch záznamu. Metóda se volá po uložením DJ.