Mercurial > personas_backend
changeset 29:27115cb4c859
Removed personas' own User model because I found out that Django can use LDAP and other custom authentication mechanisms with its auth middleware, so we'll just use that.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Thu, 28 Feb 2008 15:02:29 -0800 |
parents | 7663c50bb86c |
children | 7e7c02fd0221 |
files | PersonasBackend/personas/models.py |
diffstat | 1 files changed, 2 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/PersonasBackend/personas/models.py Thu Feb 28 14:43:28 2008 -0800 +++ b/PersonasBackend/personas/models.py Thu Feb 28 15:02:29 2008 -0800 @@ -50,24 +50,9 @@ """ import datetime + from django.db import models - -class User(models.Model): - """ - Represents a user who can log into the Personas backend. - """ - - class Admin: - pass - - name = models.CharField( - "Name of the user", - max_length=100, - help_text="This is the user's Mozilla ID.", - ) - - def __str__(self): - return self.name +from django.contrib.auth.models import User class Category(models.Model): """