mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-10 14:03:12 +00:00
Merge pull request #1223 from ae-utbm/sale-date-index
Add index on `Selling.date`
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# Generated by Django 5.2.3 on 2025-11-05 08:47
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [("counter", "0033_invoicecall")]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="selling",
|
||||
name="date",
|
||||
field=models.DateTimeField(db_index=True, verbose_name="date"),
|
||||
),
|
||||
]
|
||||
@@ -849,7 +849,7 @@ class Selling(models.Model):
|
||||
blank=False,
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
date = models.DateTimeField(_("date"))
|
||||
date = models.DateTimeField(_("date"), db_index=True)
|
||||
payment_method = models.CharField(
|
||||
_("payment method"),
|
||||
max_length=255,
|
||||
|
||||
Reference in New Issue
Block a user