mirror of https://github.com/nanoy42/coope
Yoann Piétri
5 years ago
6 changed files with 54 additions and 22 deletions
@ -0,0 +1,23 @@ |
|||
# Generated by Django 2.1 on 2019-01-05 23:18 |
|||
|
|||
from django.db import migrations, models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('gestion', '0004_auto_20181223_1830'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.AddField( |
|||
model_name='historicalproduct', |
|||
name='showingMultiplier', |
|||
field=models.PositiveIntegerField(default=1), |
|||
), |
|||
migrations.AddField( |
|||
model_name='product', |
|||
name='showingMultiplier', |
|||
field=models.PositiveIntegerField(default=1), |
|||
), |
|||
] |
@ -0,0 +1,9 @@ |
|||
import random |
|||
|
|||
from django import template |
|||
|
|||
register = template.Library() |
|||
|
|||
@register.simple_tag |
|||
def random_filter(a, b): |
|||
return random.randint(a, b) |
Loading…
Reference in new issue