Pārlūkot izejas kodu

add version field in password profile model

pull/342/head
Guillaume Vincent pirms 8 gadiem
vecāks
revīzija
198513bf68
2 mainītis faili ar 23 papildinājumiem un 0 dzēšanām
  1. +20
    -0
      api/migrations/0005_password_version.py
  2. +3
    -0
      api/models.py

+ 20
- 0
api/migrations/0005_password_version.py Parādīt failu

@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-21 13:30
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('api', '0004_remove_entries_password_info_models'),
]

operations = [
migrations.AddField(
model_name='password',
name='version',
field=models.IntegerField(default=1),
),
]

+ 3
- 0
api/models.py Parādīt failu

@@ -83,5 +83,8 @@ class Password(DateMixin):
length = models.IntegerField(default=12)
counter = models.IntegerField(default=1)

version = models.IntegerField(default=1)

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


Notiek ielāde…
Atcelt
Saglabāt