How to filter in database in django module
To get more then one record
There are two '_' so it is name__startswith
example:
artistsBon = Artist.objects.filter(name__istartswith = 'Bon') # I use option with 'i' before 'startwith'
next one is foreign key relationship



No comments:
Post a Comment