No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

60 líneas
1.9 KiB

  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.9.6 on 2016-09-24 08:11
  3. from __future__ import unicode_literals
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. import django.db.models.deletion
  7. import uuid
  8. class Migration(migrations.Migration):
  9. dependencies = [
  10. ("api", "0001_initial"),
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name="Password",
  15. fields=[
  16. (
  17. "created",
  18. models.DateTimeField(auto_now_add=True, verbose_name="created"),
  19. ),
  20. (
  21. "modified",
  22. models.DateTimeField(auto_now=True, verbose_name="modified"),
  23. ),
  24. (
  25. "id",
  26. models.UUIDField(
  27. default=uuid.uuid4,
  28. editable=False,
  29. primary_key=True,
  30. serialize=False,
  31. ),
  32. ),
  33. ("login", models.CharField(blank=True, max_length=255, null=True)),
  34. ("site", models.CharField(blank=True, max_length=255, null=True)),
  35. ("lowercase", models.BooleanField(default=True)),
  36. ("uppercase", models.BooleanField(default=True)),
  37. ("symbols", models.BooleanField(default=True)),
  38. ("numbers", models.BooleanField(default=True)),
  39. ("counter", models.IntegerField(default=1)),
  40. ("length", models.IntegerField(default=12)),
  41. (
  42. "user",
  43. models.ForeignKey(
  44. on_delete=django.db.models.deletion.CASCADE,
  45. related_name="passwords",
  46. to=settings.AUTH_USER_MODEL,
  47. ),
  48. ),
  49. ],
  50. options={
  51. "abstract": False,
  52. },
  53. ),
  54. ]