[TASK] Add project context model.

This commit is contained in:
Jan Philipp Timme 2014-07-28 13:20:13 +02:00
parent 7550632f69
commit 8ed554bca9
3 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from django.contrib import admin
from frontend.models import ProjectContext
# Register your models here.
admin.site.register(ProjectContext)

View File

@ -2,4 +2,13 @@
from django.db import models
# Create your models here.
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

View File

@ -1,7 +1,7 @@
{% extends "layout/base.html" %}
{% block content %}
<p>
Welcome to Citavi Mapper!<br>
Welcome, {{user}}!<br>
Feel free to discover.
</p>
{% endblock %}