Files
edx-platform/lms/djangoapps/circuit/models.py
2012-07-23 14:44:40 -04:00

14 lines
380 B
Python

import uuid
from django.db import models
from django.contrib.auth.models import User
class ServerCircuit(models.Model):
# Later, add owner, who can edit, part of what app, etc.
name = models.CharField(max_length=32, unique=True, db_index=True)
schematic = models.TextField(blank=True)
def __unicode__(self):
return self.name + ":" + self.schematic[:8]