from django.db import models
from django.contrib.auth.models import User

import datetime

# Create your models here.
class user(models.Model):
    username = models.CharField(max_length=32)
    cert_dn = models.CharField(max_length=128, null=True, default=None)   
    password = models.CharField(max_length=128, default="")
    is_superuser = models.BooleanField(default=False)
    join_date = models.DateField(default=datetime.date.today, null=True)

    def __str__(self):
        return "%s" % (self.username)
from django.db import models
from django.contrib.auth.models import User

import datetime

# Create your models here.
class user(models.Model):
    username = models.CharField(max_length=32)
    cert_dn = models.CharField(max_length=128, null=True, default=None)   
    password = models.CharField(max_length=128, default="")
    is_superuser = models.BooleanField(default=False)
    join_date = models.DateField(default=datetime.date.today, null=True)
    last_page_visited = models.CharField(max_length=128, null=True)

    def __str__(self):
        return "%s" % (self.username)
add field to save active page for web users