Disables registrasion app for production deployment. (#7)

* Disable registraison for production environment
Fixes lca2017/symposion#12
This commit is contained in:
Scott Bragg 2016-06-18 13:00:56 +10:00 committed by GitHub
parent 796e7a6c20
commit 2ab4cf10b8
6 changed files with 80 additions and 492 deletions

View file

@ -1,393 +0,0 @@
[
{
"model": "registrasion.category",
"pk": 1,
"fields": {
"name": "Ticket",
"description": "Admission to the conference",
"limit_per_user": 1,
"required": false,
"order": 1,
"render_type": 1
}
},
{
"model": "registrasion.category",
"pk": 2,
"fields": {
"name": "Dinner Ticket",
"description": "Tickets for the conference dinner",
"limit_per_user": null,
"required": false,
"order": 10,
"render_type": 2
}
},
{
"model": "registrasion.category",
"pk": 3,
"fields": {
"name": "T-shirt",
"description": "The conference t-shirt",
"limit_per_user": null,
"required": false,
"order": 30,
"render_type": 2
}
},
{
"model": "registrasion.category",
"pk": 4,
"fields": {
"name": "Accommodation",
"description": "Accommodation in the student dormitories",
"limit_per_user": null,
"required": false,
"order": 40,
"render_type": 2
}
},
{
"model": "registrasion.category",
"pk": 5,
"fields": {
"name": "Extra accommodation nights",
"description": "Extra nights at the student dorms. You will need to purchase the week block before you can add extra nights",
"limit_per_user": null,
"required": false,
"order": 50,
"render_type": 2
}
},
{
"model": "registrasion.product",
"pk": 1,
"fields": {
"name": "Professional",
"description": "",
"category": 1,
"price": "1000.00",
"limit_per_user": null,
"reservation_duration": "1 00:00:00",
"order": 10
}
},
{
"model": "registrasion.product",
"pk": 2,
"fields": {
"name": "Enthusiast",
"description": "",
"category": 1,
"price": "450.00",
"limit_per_user": null,
"reservation_duration": "1 00:00:00",
"order": 20
}
},
{
"model": "registrasion.product",
"pk": 3,
"fields": {
"name": "Student",
"description": "",
"category": 1,
"price": "160.00",
"limit_per_user": null,
"reservation_duration": "1 00:00:00",
"order": 30
}
},
{
"model": "registrasion.product",
"pk": 4,
"fields": {
"name": "Adult",
"description": "Includes a full meal and drinks",
"category": 2,
"price": "85.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 10
}
},
{
"model": "registrasion.product",
"pk": 5,
"fields": {
"name": "Child",
"description": "Includes a children's meal and soft drinks",
"category": 2,
"price": "40.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 20
}
},
{
"model": "registrasion.product",
"pk": 6,
"fields": {
"name": "Infant",
"description": "A seat for an infant in lap",
"category": 2,
"price": "0.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 30
}
},
{
"model": "registrasion.product",
"pk": 7,
"fields": {
"name": "S",
"description": "",
"category": 3,
"price": "25.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 10
}
},
{
"model": "registrasion.product",
"pk": 8,
"fields": {
"name": "M",
"description": "",
"category": 3,
"price": "25.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 20
}
},
{
"model": "registrasion.product",
"pk": 9,
"fields": {
"name": "L",
"description": "",
"category": 3,
"price": "25.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 30
}
},
{
"model": "registrasion.product",
"pk": 10,
"fields": {
"name": "Sunday 19-Saturday 25",
"description": "6 nights",
"category": 4,
"price": "480.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 1
}
},
{
"model": "registrasion.product",
"pk": 11,
"fields": {
"name": "Friday 17",
"description": "",
"category": 5,
"price": "80.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 10
}
},
{
"model": "registrasion.product",
"pk": 12,
"fields": {
"name": "Saturday 18",
"description": "",
"category": 5,
"price": "80.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 20
}
},
{
"model": "registrasion.product",
"pk": 13,
"fields": {
"name": "Saturday 25",
"description": "",
"category": 5,
"price": "80.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 30
}
},
{
"model": "registrasion.product",
"pk": 14,
"fields": {
"name": "Sunday 26",
"description": "",
"category": 5,
"price": "80.00",
"limit_per_user": null,
"reservation_duration": "01:00:00",
"order": 40
}
},
{
"model": "registrasion.voucher",
"pk": 1,
"fields": {
"recipient": "FooCorp",
"code": "FOOCORP",
"limit": 10
}
},
{
"model": "registrasion.discountbase",
"pk": 1,
"fields": {
"description": "Early bird discount"
}
},
{
"model": "registrasion.discountbase",
"pk": 2,
"fields": {
"description": "FooCorp complimentary sponsor ticket"
}
},
{
"model": "registrasion.discountbase",
"pk": 3,
"fields": {
"description": "1 Dinner Ticket included with Professional Tickets"
}
},
{
"model": "registrasion.discountbase",
"pk": 4,
"fields": {
"description": "1 T-Shirt included with all tickets"
}
},
{
"model": "registrasion.discountforproduct",
"pk": 1,
"fields": {
"discount": 1,
"product": 1,
"percentage": null,
"price": "200.00",
"quantity": 1
}
},
{
"model": "registrasion.discountforproduct",
"pk": 2,
"fields": {
"discount": 1,
"product": 2,
"percentage": null,
"price": "100.00",
"quantity": 1
}
},
{
"model": "registrasion.discountforproduct",
"pk": 3,
"fields": {
"discount": 2,
"product": 1,
"percentage": "100.0",
"price": null,
"quantity": 1
}
},
{
"model": "registrasion.discountforcategory",
"pk": 1,
"fields": {
"discount": 3,
"category": 2,
"percentage": "100.0",
"quantity": 1
}
},
{
"model": "registrasion.discountforcategory",
"pk": 2,
"fields": {
"discount": 4,
"category": 3,
"percentage": "100.0",
"quantity": 1
}
},
{
"model": "registrasion.timeorstocklimitdiscount",
"pk": 1,
"fields": {
"start_time": null,
"end_time": null,
"limit": 10
}
},
{
"model": "registrasion.voucherdiscount",
"pk": 2,
"fields": {
"voucher": 1
}
},
{
"model": "registrasion.includedproductdiscount",
"pk": 3,
"fields": {
"enabling_products": [
1
]
}
},
{
"model": "registrasion.includedproductdiscount",
"pk": 4,
"fields": {
"enabling_products": [
1,
2,
3
]
}
},
{
"model": "registrasion.flagbase",
"pk": 1,
"fields": {
"description": "Extra accommodation depends on Accommodation",
"condition": 2,
"products": [],
"categories": [
5
]
}
},
{
"model": "registrasion.categoryflag",
"pk": 1,
"fields": {
"enabling_category": 4,
"products": [],
"categories": [
5
]
}
}
]

View file

@ -1,20 +0,0 @@
[
{
"pk": 1,
"model": "auth.user",
"fields": {
"date_joined": "2015-10-17T00:14:31.619Z",
"groups": [],
"user_permissions": [],
"username": "pinax",
"last_name": "",
"is_superuser": true,
"is_active": true,
"email": "",
"is_staff": true,
"last_login": null,
"first_name": "",
"password": "pbkdf2_sha256$20000$mL5SrgzL4TSJ$y9rRoK1ZghGD8ywsJK0472Zp7DB+fr7jPZ9+MxPlWr0="
}
}
]

View file

@ -154,15 +154,15 @@ INSTALLED_APPS = [
"symposion.teams",
# Registrasion
"registrasion",
#"registrasion",
#admin - required by registrasion ??
"nested_admin",
#"nested_admin",
# project
"pinaxcon",
"pinaxcon.proposals",
"pinaxcon.registrasion",
#"pinaxcon.registrasion",
#testing
"django_nose",

View file

@ -4,7 +4,7 @@
{% load proposal_tags %}
{% load review_tags %}
{% load teams_tags %}
{% load registrasion_tags %}
{# {% load registrasion_tags %} #}
{% block head_title %}Dashboard{% endblock %}
@ -94,78 +94,7 @@
{% endif %}
</div>
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
{% if not user.attendee.completed_registration %}
<a href="{% url "guided_registration" %}" class="btn btn-xs btn-default">
<i class="fa fa-plus-sign"></i> Register for the conference
</a>
{% else %}
<a href="{% url "attendee_edit" %}" class="btn btn-xs btn-default">
<i class="fa fa-pencil"></i> Edit your attendee profile
</a>
{% items_pending as pending %}
{% if pending %}
<a href="{% url "checkout" %}" class="btn btn-xs btn-default">
<i class="fa fa-credit-card"></i> Pay your registration
</a>
{% endif %}
{% endif %}
</div>
<h3 class="panel-title">
<i class="fa fa-ticket"></i>
{% trans "Registration" %}
</h3>
</div>
<div class="panel-body">
{% if not user.attendee.completed_registration %}
<p>To attend the conference, you must purchase a ticket. <a href="{% url "guided_registration" %}">Use our registration form to purchase your ticket</a>.
{% else %}
<h4>Your registration</h4>
{% items_pending as pending %}
{% if pending %}
<h5>Items pending payment</h5>
{% include "registrasion/items_list.html" with items=pending %}
{% endif %}
{% items_purchased as purchased %}
{% if purchased %}
<h5>Paid items</h5>
{% include "registrasion/items_list.html" with items=purchased %}
{% endif %}
<h5>Add/Update items</h5>
{% available_categories as categories %}
{% for category in categories %}
<li><a href="{% url "product_category" category.id %}">{{ category.name }}</a></li>
{% endfor %}
</ul>
{% invoices as invoices %}
{% if invoices %}
<h5>Invoices</h5>
<ul>
{% for invoice in invoices %}
{% if not invoice.is_void %}
<li>
<a href="{% url "invoice" invoice.id %}">Invoice {{ invoice.id }}</a>
- ${{ invoice.value }} ({{ invoice.get_status_display }})
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% available_credit as credit %}
{% if credit %}
<p>You have ${{ credit }} leftover from refunded invoices. Contact the conference organisers
to put this toward other purchases, or to refund it.</p>
{% endif %}
{% endif %}
</div>
</div>
{# {% include 'registrasion/dashboard-widget.html' %} #}
<div class="panel panel-default">
<div class="panel-heading">

View file

@ -0,0 +1,72 @@
<div class="panel panel-default">
<div class="panel-heading">
<div class="pull-right">
{% if not user.attendee.completed_registration %}
<a href="{% url "guided_registration" %}" class="btn btn-xs btn-default">
<i class="fa fa-plus-sign"></i> Register for the conference
</a>
{% else %}
<a href="{% url "attendee_edit" %}" class="btn btn-xs btn-default">
<i class="fa fa-pencil"></i> Edit your attendee profile
</a>
{% items_pending as pending %}
{% if pending %}
<a href="{% url "checkout" %}" class="btn btn-xs btn-default">
<i class="fa fa-credit-card"></i> Pay your registration
</a>
{% endif %}
{% endif %}
</div>
<h3 class="panel-title">
<i class="fa fa-ticket"></i>
{% trans "Registration" %}
</h3>
</div>
<div class="panel-body">
{% if not user.attendee.completed_registration %}
<p>To attend the conference, you must purchase a ticket. <a href="{% url "guided_registration" %}">Use our registration form to purchase your ticket</a>.
{% else %}
<h4>Your registration</h4>
{% items_pending as pending %}
{% if pending %}
<h5>Items pending payment</h5>
{% include "registrasion/items_list.html" with items=pending %}
{% endif %}
{% items_purchased as purchased %}
{% if purchased %}
<h5>Paid items</h5>
{% include "registrasion/items_list.html" with items=purchased %}
{% endif %}
<h5>Add/Update items</h5>
{% available_categories as categories %}
{% for category in categories %}
<li><a href="{% url "product_category" category.id %}">{{ category.name }}</a></li>
{% endfor %}
</ul>
{% invoices as invoices %}
{% if invoices %}
<h5>Invoices</h5>
<ul>
{% for invoice in invoices %}
{% if not invoice.is_void %}
<li>
<a href="{% url "invoice" invoice.id %}">Invoice {{ invoice.id }}</a>
- ${{ invoice.value }} ({{ invoice.get_status_display }})
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% available_credit as credit %}
{% if credit %}
<p>You have ${{ credit }} leftover from refunded invoices. Contact the conference organisers
to put this toward other purchases, or to refund it.</p>
{% endif %}
{% endif %}
</div>
</div>

View file

@ -28,11 +28,11 @@ urlpatterns = [
url(r"^", include("pinax.pages.urls")),
# Required by registrasion
url(r'^register/', include('registrasion.urls')),
url(r'^nested_admin/', include('nested_admin.urls')),
# url(r'^register/', include('registrasion.urls')),
# url(r'^nested_admin/', include('nested_admin.urls')),
# Demo payment gateway and related features
url(r"^register/pinaxcon/", include("pinaxcon.registrasion.urls")),
# url(r"^register/pinaxcon/", include("pinaxcon.registrasion.urls")),
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)