Files
postgres-web/pgweb/docs/models.py
Magnus Hagander 90b758c247 A first very basic import.
Contains basic functionality, and an import of most of the static content
from the old site.

There is still plenty more to do...
2009-09-14 14:39:25 +02:00

13 lines
403 B
Python

from django.db import models
class DocPage(models.Model):
id = models.AutoField(null=False, primary_key=True)
file = models.CharField(max_length=64, null=False, blank=False)
version = models.DecimalField(max_digits=3, decimal_places=1, null=False)
title = models.CharField(max_length=256, null=True, blank=True)
content = models.TextField(null=True, blank=True)
class Meta:
db_table = 'docs'