- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
372433594 |
import uuid | |
class Booking(models.Model): | |
booking_no = models.CharField(primary_key=True, default=uuid.uuid4().hex[:5].upper(), max_length=50, editable=False) | |
def __str__(self): | |
return str(self.booking_no) |
# @login_required | |
@staff_member_required | |
def blog_post_create_view(request): | |
form = BlogModelForm(request.POST or None, request.FILES or None) | |
if form.is_valid(): | |
print(form.cleaned_data) | |
form = form.save(commit=False) |
EMOJI CHEAT SHEET
Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.
People
😄
A Pen by Jack Rugile on CodePen.
/*! | |
* Serialize all form data into a query string | |
* (c) 2018 Chris Ferdinandi, MIT License, https://gomakethings.com | |
* @param {Node} form The form to serialize | |
* @return {String} The serialized form data | |
*/ | |
var serialize = function (form) { | |
// Setup our serialized data | |
var serialized = []; |
<div class="section custom-full1">Some section</div> | |
<div class="section">Some section</div> | |
<div class="section custom-full1">Some section</div> | |
<div class="section">Some section</div> | |
<div class="section custom-full1">Some section</div> | |
<div class="section">Some section</div> | |
<div class="section custom-full1">Some section</div> | |
<div class="section">Some section</div> |