11 lines
353 B
Python
11 lines
353 B
Python
from django.db import models
|
|
from django.contrib.auth.models import User
|
|
|
|
class TempUserLog(models.Model):
|
|
who = models.CharField(max_length=255)
|
|
why = models.CharField(max_length=255)
|
|
expires = models.DateTimeField()
|
|
issued_by = models.ForeignKey(User)
|
|
created = models.DateTimeField(auto_now_add=True)
|
|
# TODO username and pass
|