import pathlib
from setuptools import setup, find_packages
HERE = pathlib.Path(__file__).parent
-VERSION = '0.0.dev12'
+VERSION = '0.0.dev13'
PACKAGE_NAME = 'django_predrill_tickle'
AUTHOR = 'David Kerkeslager'
AUTHOR_EMAIL = 'david@kerkeslager.com'
--- /dev/null
+# Generated by Django 3.1.7 on 2021-02-27 19:08
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('tickle', '0003_auto_20210227_0609'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='attempt',
+ name='result',
+ field=models.CharField(choices=[('send', 'Sent'), ('fall', 'Fall'), ('unknown', 'Unknown')], max_length=8),
+ ),
+ migrations.AlterField(
+ model_name='attempt',
+ name='user',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='attempts', to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='todo',
+ name='user',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='todos', to=settings.AUTH_USER_MODEL),
+ ),
+ ]
ATTEMPT_RESULT_CHOICES = (
('send', 'Sent'),
('fall', 'Fall'),
+ ('unknown', 'Unknown'),
)
PROTECTION_CHOICES = (
)
class Attempt(models.Model):
- user = models.ForeignKey(User, on_delete=models.CASCADE)
+ user = models.ForeignKey(
+ User,
+ on_delete=models.CASCADE,
+ related_name='attempts',
+ )
date = models.DateField()
notes = models.TextField(blank=True)
boulder = models.ForeignKey(
)
class Todo(models.Model):
- user = models.ForeignKey(User, on_delete=models.CASCADE)
+ user = models.ForeignKey(
+ User,
+ on_delete=models.CASCADE,
+ related_name='todos',
+ )
notes = models.TextField(blank=True)
protection = models.CharField(max_length=8, choices=PROTECTION_CHOICES)
boulder = models.ForeignKey(