citavi_mapper/frontend/models.py

16 lines
461 B
Python

# -*- coding: utf-8 -*-
from django.db import models
class Project(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 + ")"
else:
repr += " (Empty)"
return repr