Did I find the right examples for you? yes no

All Samples(7)  |  Call(7)  |  Derive(0)  |  Import(0)

src/d/j/django-lfs-HEAD/lfs/manage/manufacturers/views.py   django-lfs(Download)
    """
    return render_to_string(template_name, RequestContext(request, {
        "manufacturers": Manufacturer.objects.all(),
        "manufacturer_id": int(manufacturer_id),
    }))
def manufacturer_dispatcher(request):
    """Dispatches to the first manufacturer or to the add form.
    """
    try:
        manufacturer = Manufacturer.objects.all()[0]

src/d/j/django-lfs-0.7.7/lfs/manage/manufacturers/views.py   django-lfs(Download)
    """
    return render_to_string(template_name, RequestContext(request, {
        "manufacturers": Manufacturer.objects.all(),
        "manufacturer_id": int(manufacturer_id),
    }))
def manufacturer_dispatcher(request):
    """Dispatches to the first manufacturer or to the add form.
    """
    try:
        manufacturer = Manufacturer.objects.all()[0]

src/d/j/django-lfs-HEAD/lfs/core/management/commands/lfs_migrate.py   django-lfs(Download)
        db.add_column('manufacturer_manufacturer', 'product_cols', models.fields.IntegerField(default=3), keep_default=False)
 
        for i, manufacturer in enumerate(Manufacturer.objects.all()):
            manufacturer.slug = slugify(manufacturer.name)
            manufacturer.position = (i + 1) * 10

src/d/j/django-lfs-HEAD/lfs/manage/templatetags/lfs_manage_tags.py   django-lfs(Download)
    selected = request.session.get("product_filters", {}).get("manufacturer")
    manufacturers = []
    for manufacturer in Manufacturer.objects.all():
        manufacturers.append({
            "id": manufacturer.id,

src/d/j/django-lfs-HEAD/lfs/manufacturer/views.py   django-lfs(Download)
        start = 1
 
    manufacturers = Manufacturer.objects.all()
 
    # prepare paginator