Skip to content

Instantly share code, notes, and snippets.

View ishtiaque2asad2's full-sized avatar

Ishtiaque Asad ishtiaque2asad2

View GitHub Profile
@ishtiaque2asad2
ishtiaque2asad2 / django_choices.txt
Created October 21, 2022 03:58 — forked from JackAtOmenApps/django_choices.txt
Example of the new django 3.0 TextChoices enumeration types
from django.db import models
class Animal(models.Model):
class AnimalType(models.TextChoices):
ANTELOPE = 'A', 'Antelope'
BAT = 'B', 'Bat'
COUGAR = 'C', 'Cougar'
animal_type = models.CharField(max_length=1, choices=AnimalType.choices, default=AnimalType.ANTELOPE)
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux

channel operator quick reference

direct discussion about administrative action away from the main channel and into #reddit-diabetes-ops to minimise disruption. our -ops channel is the place where users should come to ask for our help. examples:

  • any sort of operator request or discussion of channel administration in the main channel
  • PMs asking why a ban was set
  • reports of harassment (unless the user is confiding in you)
  • any request for operator action

changing channel access permissions