Commit 030be363 authored by David Haynes's avatar David Haynes 🙆
Browse files

Tear it all down and rename

- Adopt go_ahead and go_back
parent 179097b6
......@@ -8,7 +8,7 @@ from django.core.management.base import BaseCommand
from django.utils import timezone
# App Imports
from go.models import URL
from go_back.models import URL
class Command(BaseCommand):
"""
......
......@@ -13,7 +13,7 @@ from django.test import TestCase
from django.utils import timezone
# App Imports
from go.models import URL, RegisteredUser
from go_back.models import URL, RegisteredUser
# class ExpireLinksTest(TestCase):
# def setUp(self):
......
# Generated by Django 2.0.5 on 2018-05-23 23:29
# Generated by Django 2.0.8 on 2018-08-02 01:05
from django.conf import settings
from django.db import migrations, models
import django.utils.timezone
import go_back.validators
class Migration(migrations.Migration):
......@@ -18,12 +19,12 @@ class Migration(migrations.Migration):
name='RegisteredUser',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('full_name', models.CharField(default='', max_length=100, verbose_name='verbose name')),
('organization', models.CharField(default='', max_length=100, verbose_name='verbose name')),
('description', models.TextField(blank=True, default='', verbose_name='verbose name')),
('registered', models.BooleanField(default=False, verbose_name='verbose name')),
('approved', models.BooleanField(default=False, verbose_name='verbose name')),
('blocked', models.BooleanField(default=False, verbose_name='verbose name')),
('full_name', models.CharField(default='', max_length=100, verbose_name='Full Name')),
('organization', models.CharField(default='', max_length=100, verbose_name='Organization')),
('description', models.TextField(blank=True, default='', verbose_name='Signup Description')),
('registered', models.BooleanField(default=False, verbose_name='Registration Status')),
('approved', models.BooleanField(default=False, verbose_name='Approval Status')),
('blocked', models.BooleanField(default=False, verbose_name='Blocked Status')),
('user', models.OneToOneField(on_delete='cascade', to=settings.AUTH_USER_MODEL, verbose_name='Django User Object')),
],
),
......@@ -31,14 +32,14 @@ class Migration(migrations.Migration):
name='URL',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('date_created', models.DateTimeField(default=django.utils.timezone.now, verbose_name='verbose name')),
('date_expires', models.DateTimeField(blank=True, null=True, verbose_name='verbose name')),
('destination', models.URLField(default='https://go.gmu.edu', max_length=1000)),
('short', models.SlugField(max_length=20, unique=True)),
('date_created', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Go Link Creation Date')),
('date_expires', models.DateTimeField(blank=True, null=True, verbose_name='Go Link Expiry Date')),
('destination', models.URLField(default='https://go.gmu.edu', max_length=1000, verbose_name='Go Link Destination URL')),
('short', models.CharField(max_length=20, unique=True, validators=[go_back.validators.unique_short_validator, go_back.validators.regex_short_validator], verbose_name='Go Shortcode')),
('clicks', models.IntegerField(default=0)),
('qrclicks', models.IntegerField(default=0)),
('socialclicks', models.IntegerField(default=0)),
('owner', models.ForeignKey(on_delete='cascade', to='go.RegisteredUser', verbose_name='verbose name')),
('owner', models.ForeignKey(on_delete='cascade', to='go_back.RegisteredUser', verbose_name='RegisteredUser Owner')),
],
options={
'ordering': ['short'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment