Sort of works now

This commit is contained in:
Jonathan Cremin 2015-01-17 23:54:26 +00:00
parent 593f3e6d1c
commit 5972323cc1
15 changed files with 453 additions and 6 deletions

View file

@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Link',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('link', models.URLField(max_length=2048)),
('base62', models.CharField(max_length=64, null=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
('clicks', models.IntegerField(default=0)),
('ip', models.GenericIPAddressField(null=True)),
],
options={
},
bases=(models.Model,),
),
]