Ver a proveniência

Change default password profile in model to version 2

pull/342/head
Guillaume Vincent há 7 anos
ascendente
cometimento
f853a465b0
2 ficheiros alterados com 27 adições e 2 eliminações
  1. +25
    -0
      api/migrations/0006_change_default_password_profile.py
  2. +2
    -2
      api/models.py

+ 25
- 0
api/migrations/0006_change_default_password_profile.py Ver ficheiro

@@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-05-19 18:03
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0005_password_version'),
]

operations = [
migrations.AlterField(
model_name='password',
name='length',
field=models.IntegerField(default=16),
),
migrations.AlterField(
model_name='password',
name='version',
field=models.IntegerField(default=2),
),
]

+ 2
- 2
api/models.py Ver ficheiro

@@ -80,10 +80,10 @@ class Password(DateMixin):
symbols = models.BooleanField(default=True)
numbers = models.BooleanField(default=True)

length = models.IntegerField(default=12)
length = models.IntegerField(default=16)
counter = models.IntegerField(default=1)

version = models.IntegerField(default=1)
version = models.IntegerField(default=2)

def __str__(self):
return str(self.id)


Carregando…
Cancelar
Guardar