Clicking anywhere in a <li> to check a checkbox contained within it, without checking the checkbox itself becoming a problem.
Forked from Chris Smith's Pen Checking Checkboxes by Clicking Parent List Item.
A Pen by Dries Desmet on CodePen.
| stages: | |
| - build | |
| - test | |
| - deploy | |
| build: | |
| stage: build | |
| image: node:lts | |
| script: | |
| - npm install | 
| courses1 = Course.objects.filter(status='open').filter(site=Site.objects.get_current()).prefetch_related('teachers', 'accompanists').order_by('coursehours__starthour') | |
| len(courses1.values()) | |
| # 500 | |
| courses2 = Course.objects.filter(status='open').filter(site=Site.objects.get_current()) | |
| len(courses1.values()) | |
| # 44 | 
| class ContactForm(forms.ModelForm): | |
| def save(self, **kwargs): | |
| contact = super(ContactForm, self).save(kwargs) | |
| contact.send_email() | |
| return contact | |
| class Meta: | |
| model = Contact | |
| fields = '__all__' | 
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| from django.db import models, migrations | |
| def mark_teachers_as_staff(apps, schema_editor): | |
| Profile = apps.get_model('profiles', 'Profile') | |
| import pdb; pdb.set_trace | |
| for profile in Profile.objects.filter(user_ptr__groups__name__in=['lesgevers', 'begeleiders']): | 
| # -*- coding: utf-8 -*- | |
| from __future__ import unicode_literals | |
| from django.db import models, migrations | |
| from cms.models.pluginmodel import CMSPlugin | |
| def addconfig(apps, schema_editor): | |
| # Existing Quote Plugins don't have a configuration model, they use the default CMSPlugin, but now they should be | |
| # using RandomQuotePlugin which stores the amount of quotes to show. We add a default of 1, to make it backwards | 
| # -*- coding: utf-8 -*- | |
| """Calculates the current version number. | |
| If possible, uses output of “git describe” modified to conform to the | |
| visioning scheme that setuptools uses (see PEP 386). Releases must be | |
| labelled with annotated tags (signed tags are annotated) of the following | |
| format: | |
| v<num>(.<num>)+ [ {a|b|c|rc} <num> (.<num>)* ] | 
Clicking anywhere in a <li> to check a checkbox contained within it, without checking the checkbox itself becoming a problem.
Forked from Chris Smith's Pen Checking Checkboxes by Clicking Parent List Item.
A Pen by Dries Desmet on CodePen.
| pg_dump -c -U littleball littleball > /home/urga/littleball.sql | |
| psql -U littleball_develop < /home/urga/littleball.sql | 
| find . -iname "*.php" > /tmp/my_theme_file_list.txt | |
| xgettext --from-code=utf-8 -f /tmp/my_theme_file_list.txt --keyword=__ --keyword=_e --keyword=_n -o lang/roots.pot | 
| { | |
| "color_scheme": "Packages/Theme - Flatland/Flatland Dark.tmTheme", | |
| // Gebruik het Flatland kleurenschema voor code. | |
| "ensure_newline_at_eof_on_save": true, | |
| // Maak altijd een newline op het einde van een bestand. | |
| "file_exclude_patterns": | |
| [ | |
| "*.scssc", | |
| "*.DS_Store" | |
| ], |