Sfoglia il codice sorgente

Change default password profile in model to version 2

pull/342/head
Guillaume Vincent 7 anni fa
parent
commit
f853a465b0
2 ha cambiato i file con 27 aggiunte e 2 eliminazioni
  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 Vedi File

@@ -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 Vedi File

@@ -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)


Caricamento…
Annulla
Salva