2014-07-25 13:53:01 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2014-07-25 11:20:10 +02:00
|
|
|
from django.db import models
|
|
|
|
|
2014-08-11 16:01:03 +02:00
|
|
|
class Project(models.Model):
|
2014-07-28 13:20:13 +02:00
|
|
|
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 + ")"
|
2014-08-11 16:01:03 +02:00
|
|
|
else:
|
|
|
|
repr += " (Empty)"
|
2014-07-28 13:20:13 +02:00
|
|
|
return repr
|