citavi_mapper/frontend/models.py

14 lines
423 B
Python

# -*- coding: utf-8 -*-
from django.db import models
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