Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/j/django-temporal-models-HEAD/example/app/models.py   django-temporal-models(Download)
from temporal.models import models, TemporalForeignKey, TemporalModel, TemporalTrail
 
class Person(TemporalModel):
    first_name = models.CharField(max_length=255)
    last_name = models.CharField(max_length=255)
    salary = models.PositiveIntegerField()
    organization = TemporalForeignKey('Organization')
 
    history = TemporalTrail()
class Organization(TemporalModel):
    name = models.CharField(max_length=255)
 
    history = TemporalTrail()