Files
modoboa/lib/models.py
T
Antoine Nguyen 6f182d7850 * No more code inside lib/__init__.py
* Fixed a circular import raised only when using commands like 'manage.py syncdb'
2011-08-25 17:22:37 +02:00

12 lines
361 B
Python

from django.db import models
from django.contrib.auth.models import User
class Parameter(models.Model):
name = models.CharField(max_length=255)
value = models.CharField(max_length=255)
class UserParameter(models.Model):
user = models.ForeignKey("auth.User")
name = models.CharField(max_length=255)
value = models.CharField(max_length=255)