Django application that provider like and ilike lookup in the querysets
Project description
Django Like
Information
Django Like is a Django application that adds other useful fields.
It is distributed under the terms of the GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>
Requeriments
Django 1.1 (or higher). It’s possible that works with other versions lower 1.1
Installation
In your settings.py
INSTALLED_APPS = ( 'django_like', )
Or apply the next Patch (This is not neccesary, you can install the app)
Usage
Anything that you can to do with like sentence in SQL
MyModel.objects.filter(field_name__like='xx%YY%zz') MyModel.objects.filter(field_name__ilike='xx%yy%zz') User.objects.filter(username__like='a%in')
It is more quick that something like this, and more readable:
MyModel.objects.filter(field_name__regex='^xx.*YY.*zz$')
This app provider two new lookups: like and ilike.
Reported
Ticket in Django
Development
You can get the leading edge version of django-like by doing a checkout of its repository:
0.0.1 (2011-12-28)
First version to django-like
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-like-0.0.1.tar.gz
.
File metadata
- Download URL: django-like-0.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b2f0fa892d4dd103bd2d526961e8ac65a9e6f31f71bcfbda771cf5092381348 |
|
MD5 | 84aa0985e5cb4636829617fb8cf61d6e |
|
BLAKE2b-256 | 549c6e0a62ef09497a7d4d47c3ed893fe92d63ed54e52edb27822decef009877 |