Records¶
Kod aplikacji¶
Model¶
- class poradnia.records.models.AbstractRecord(*args, **kwargs)[źródło]¶
- Parametry:
case_id (ForeignKey to
poradnia.cases.models.Case
) – Case
- save(*args, **kwargs)[źródło]¶
Save the current instance. Override this in a subclass if you want to control the saving process.
The «force_insert» and «force_update» parameters can be used to insist that the „save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.
- class poradnia.records.models.AbstractRecordQuerySet(model=None, query=None, using=None, hints=None)[źródło]¶
- class poradnia.records.models.Record(id, case, created_on, letter, event, courtcase, content_type, object_id)[źródło]¶
- Parametry:
id (AutoField) – Id
case_id (ForeignKey to
poradnia.cases.models.Case
) – Casecreated_on (DateTimeField) – Created on
letter_id (OneToOneField to
poradnia.letters.models.Letter
) – Letterevent_id (OneToOneField to
poradnia.events.models.Event
) – Eventcourtcase_id (OneToOneField to
poradnia.judgements.models.CourtCase
) – Courtcasecontent_type_id (ForeignKey to
django.contrib.contenttypes.models.ContentType
) – Content typeobject_id (PositiveIntegerField) – Object id
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶