user database app
This commit is contained in:
1 parent
9de4c2efe3
commit
b200bc03ae
5 files changed
+46
No files matched your search
Whitespace-only changes.
@@ -0,0 +1,4 @@
|
||||
from udb.models import *
|
||||
from django.contrib import admin
|
||||
|
||||
admin.site.register(User)
|
||||
@@ -0,0 +1,25 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
|
||||
|
||||
class User(models.Model):
|
||||
id = models.EmailField(primary_key=True)
|
||||
name = models.CharField(max_length=256)
|
||||
uid = models.IntegerField(default=5000, editable=False)
|
||||
gid = models.IntegerField(default=5000, editable=False)
|
||||
home = models.CharField(default="/var/spool/mail/virtual", editable=False, max_length=256)
|
||||
maildir = models.CharField(unique=True, max_length=255)
|
||||
enabled = models.BooleanField()
|
||||
change_password = models.BooleanField()
|
||||
clear = models.CharField(max_length=64, default="ChangeMe")
|
||||
crypt = models.CharField(max_length=64)
|
||||
quita = models.IntegerField()
|
||||
procmailrc = models.CharField(max_length=256, blank=True)
|
||||
spamassasinrc = models.CharField(max_length=256, blank=True)
|
||||
|
||||
|
||||
def __unicode__(self):
|
||||
return self.id
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
"""
|
||||
This file demonstrates writing tests using the unittest module. These will pass
|
||||
when you run "manage.py test".
|
||||
|
||||
Replace this with more appropriate tests for your application.
|
||||
"""
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
|
||||
class SimpleTest(TestCase):
|
||||
def test_basic_addition(self):
|
||||
"""
|
||||
Tests that 1 + 1 always equals 2.
|
||||
"""
|
||||
self.assertEqual(1 + 1, 2)
|
||||
@@ -0,0 +1 @@
|
||||
# Create your views here.
|
||||
Reference in new issue
Block a user