Added a utility model to hold information on when a given database dump has been done.

- Legacy-Id: 10480
This commit is contained in:
Henrik Levkowetz 2015-11-14 22:59:14 +00:00
parent 5a368acc13
commit 29b30c6c3c
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='DumpInfo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('date', models.DateTimeField()),
('host', models.CharField(max_length=128)),
],
options={
},
bases=(models.Model,),
),
]

View file

8
ietf/utils/models.py Normal file
View file

@ -0,0 +1,8 @@
# Copyright The IETF Trust 2015, All Rights Reserved
from django.db import models
class DumpInfo(models.Model):
date = models.DateTimeField()
host = models.CharField(max_length=128)