Verified Commit e9b0b328 authored by David Haynes's avatar David Haynes 🙆
Browse files

Comments, proper utf-8 encoding and pep8 clean

- just some simple fixings to make py2 compat work
parent e4412c5e
Pipeline #1899 passed with stage
in 1 minute and 37 seconds
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
api/models.py
......@@ -134,10 +136,12 @@ class Facility(TimeStampedModel):
message='The link is not a valid tapingo link. Example: https://www.tapingo.com/order/restaurant/starbucks-gmu-johnson/',
code='invalid_tapingo_url')])
phone_number = models.CharField(blank=True,max_length=18, validators=[RegexValidator(regex='^\(?([0-9]{3})\)?[-.●]?([0-9]{3})[-.●]?([0-9]{4})$',
message='Invalid phone number',
code='invalid_phone_number')])
# Phone number for a location if provided. Accept both ###-###-#### or
# without dashes
phone_number = models.CharField(blank=True, max_length=18, validators=[RegexValidator(regex='^\(?([0-9]{3})\)?[-.●]?([0-9]{3})[-.●]?([0-9]{4})$',
message='Invalid phone number',
code='invalid_phone_number')])
# A comma seperate list of words that neatly an aptly describe the product
# that this facility produces. (ex. for Taco Bell: mexican, taco, cheap)
facility_product_tags = TaggableManager()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment