This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mbftns/main/models.py
T
2012-02-02 15:01:35 +01:00

17 lines
578 B
Python

from django.db import models
from django.contrib.auth.models import User
class TempUserLog(models.Model):
issued_by = models.ForeignKey(User)
description = models.TextField(max_length=255)
expires = models.DateTimeField()
count = models.IntegerField()
created = models.DateTimeField(auto_now_add=True)
class UserPass(models.Model):
username = models.CharField(max_length=50, unique=True)
password = models.CharField(max_length=50)
radcheck_id = models.PositiveIntegerField(unique=True, null=False)
log = models.ForeignKey(TempUserLog)