[TASK] Add project context model.
This commit is contained in:
parent
7550632f69
commit
8ed554bca9
|
@ -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)
|
|
@ -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
|
|
@ -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 %}
|
Loading…
Reference in New Issue