Skip to content

Commit

Permalink
one more index
Browse files Browse the repository at this point in the history
  • Loading branch information
owocki committed Oct 2, 2021
1 parent e8efff9 commit 94036cc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions app/kudos/migrations/0021_auto_20211002_0313.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 2.2.24 on 2021-10-02 03:13

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('kudos', '0020_auto_20210924_0616'),
]

operations = [
migrations.AlterField(
model_name='token',
name='hidden',
field=models.BooleanField(db_index=True, default=False, help_text='Hide from marketplace?'),
),
migrations.AlterField(
model_name='token',
name='num_clones_allowed',
field=models.IntegerField(blank=True, db_index=True, null=True),
),
]
4 changes: 2 additions & 2 deletions app/kudos/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class Meta:

# Kudos Struct (also in contract)
price_finney = models.IntegerField()
num_clones_allowed = models.IntegerField(null=True, blank=True)
num_clones_allowed = models.IntegerField(null=True, blank=True, db_index=True)
num_clones_in_wild = models.IntegerField(null=True, blank=True)
num_clones_available_counting_indirect_send = models.IntegerField(blank=True, default=0)

Expand Down Expand Up @@ -133,7 +133,7 @@ class Meta:
contract = models.ForeignKey(
'kudos.Contract', related_name='kudos_contract', on_delete=models.SET_NULL, null=True
)
hidden = models.BooleanField(default=False, help_text=('Hide from marketplace?'))
hidden = models.BooleanField(default=False, help_text=('Hide from marketplace?'), db_index=True)
hidden_token_details_page = models.BooleanField(default=False, help_text=('Hide token details page'))
send_enabled_for_non_gitcoin_admins = models.BooleanField(default=True)
preview_img_mode = models.CharField(max_length=255, default='png')
Expand Down

0 comments on commit 94036cc

Please sign in to comment.