Skip to content

Commit

Permalink
add Autoincrement field id [Ref #5]
Browse files Browse the repository at this point in the history
  • Loading branch information
pisaacode committed Jan 26, 2021
1 parent 39956e9 commit 2a6f863
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions webpay/oneclick/migrations/0005_auto_20210126_1728.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1 on 2021-01-26 20:28

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('oneclick', '0004_auto_20210126_1727'),
]

operations = [
migrations.AlterField(
model_name='webpayoneclickinscription',
name='id',
field=models.AutoField(primary_key=True, serialize=False, verbose_name='id'),
),
]
2 changes: 1 addition & 1 deletion webpay/oneclick/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class WebpayOneClickInscription(models.Model):
"""
Modelo para guardar informacion de OneClick
"""
id = models.IntegerField('id', primary_key=True)
id = models.AutoField('id', primary_key=True)
user = models.CharField(
'Username del usuario del comercio', max_length=100)
token = models.CharField(
Expand Down

0 comments on commit 2a6f863

Please sign in to comment.