citavi_mapper/frontend/models.py

14 lines
423 B
Python
Raw Normal View History

2014-07-25 13:53:01 +02:00
# -*- coding: utf-8 -*-
from django.db import models
2014-07-28 13:20:13 +02:00
class ProjectContext(models.Model):
name = models.CharField(max_length=255)
description = models.TextField()
associated_filename = models.CharField(max_length=255,blank=True,null=True)
def __unicode__(self):
repr = self.name
if self.associated_filename:
repr += " (" + self.associated_filename + ")"
return repr