HCG1 installation
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,55 @@
|
||||
from django.contrib import admin
|
||||
from .models import Order, Product, OrderProduct,Customer, Store
|
||||
|
||||
|
||||
@admin.register(Store)
|
||||
class StoreAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'address', 'telephone')
|
||||
|
||||
|
||||
@admin.register(OrderProduct)
|
||||
class OrderProductAdmin(admin.ModelAdmin):
|
||||
def get_order_id(self, obj):
|
||||
return obj.order.id
|
||||
|
||||
def get_product_name(self, obj):
|
||||
return obj.product.name
|
||||
list_display = ('get_order_id', 'get_product_name', 'info')
|
||||
|
||||
|
||||
@admin.register(Product)
|
||||
class ProductAdmin(admin.ModelAdmin):
|
||||
list_display = ('name',)
|
||||
|
||||
|
||||
@admin.register(Customer)
|
||||
class CustomerAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'telephone', 'address')
|
||||
|
||||
|
||||
class OrderInlines(admin.TabularInline):
|
||||
model = OrderProduct
|
||||
fk_name = "order"
|
||||
extra = 1
|
||||
|
||||
|
||||
@admin.register(Order)
|
||||
class OrderAdmin(admin.ModelAdmin):
|
||||
def get_products(self, obj):
|
||||
#return "\n".join(['{}:{} | '.format(p.name, p.amount) for p in obj.order_products.all()])
|
||||
return "\n".join([str(p) for p in obj.order_products.all()])
|
||||
|
||||
def get_customer_name(self, obj):
|
||||
return obj.customer.name
|
||||
|
||||
def get_customer_telephone(self, obj):
|
||||
return obj.customer.telephone
|
||||
|
||||
get_customer_name.admin_order_field = 'customer_name' # Allows column order sorting
|
||||
get_customer_name.short_description = 'Customer Name' # Renames column head
|
||||
|
||||
get_customer_telephone.admin_order_field = 'customer_telephone' # Allows column order sorting
|
||||
get_customer_telephone.short_description = 'Customer Telephone' # Renames column head
|
||||
|
||||
list_display = ('id', 'get_customer_name', 'get_customer_telephone', 'order_date', 'delivery_date', 'store', 'get_products')
|
||||
inlines = (OrderInlines,)
|
||||
@@ -0,0 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class OrdersAppConfig(AppConfig):
|
||||
name = 'orders_app'
|
||||
@@ -0,0 +1,21 @@
|
||||
from crispy_forms.layout import LayoutObject, TEMPLATE_PACK
|
||||
from django.shortcuts import render
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
|
||||
###### Thanks!
|
||||
###### https://stackoverflow.com/questions/15157262/django-crispy-forms-nesting-a-formset-within-a-form/22053952#22053952
|
||||
|
||||
class Formset(LayoutObject):
|
||||
template = "orders/formset.html"
|
||||
|
||||
def __init__(self, formset_name_in_context, template=None):
|
||||
self.formset_name_in_context = formset_name_in_context
|
||||
self.fields = []
|
||||
if template:
|
||||
self.template = template
|
||||
|
||||
|
||||
def render(self, form, form_style, context, template_pack=TEMPLATE_PACK):
|
||||
formset = context[self.formset_name_in_context]
|
||||
return render_to_string(self.template, {'formset': formset, 'current_view': context['request'].path})
|
||||
@@ -0,0 +1,21 @@
|
||||
from crispy_forms.layout import LayoutObject, TEMPLATE_PACK
|
||||
from django.shortcuts import render
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
|
||||
###### Thanks!
|
||||
###### https://stackoverflow.com/questions/15157262/django-crispy-forms-nesting-a-formset-within-a-form/22053952#22053952
|
||||
|
||||
class Formset(LayoutObject):
|
||||
template = "orders/formset.html"
|
||||
|
||||
def __init__(self, formset_name_in_context, template=None):
|
||||
self.formset_name_in_context = formset_name_in_context
|
||||
self.fields = []
|
||||
if template:
|
||||
self.template = template
|
||||
|
||||
|
||||
def render(self, form, form_style, context, template_pack=TEMPLATE_PACK):
|
||||
formset = context[self.formset_name_in_context]
|
||||
return render_to_string(self.template, {'formset': formset, 'current_view': context['request'].path})
|
||||
@@ -0,0 +1,187 @@
|
||||
from crispy_forms.helper import FormHelper
|
||||
from crispy_forms.layout import Layout, Field, Fieldset, Div, HTML, ButtonHolder, Submit
|
||||
from django import forms
|
||||
from django.urls import reverse_lazy
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django_addanother.widgets import AddAnotherWidgetWrapper
|
||||
|
||||
from orders_app.custom_layout_object import Formset
|
||||
from orders_app.models import Order, OrderProduct, Customer, Product, Store
|
||||
|
||||
|
||||
class CustomerForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Customer
|
||||
fields = ['name', 'address', 'telephone', 'email', 'social_media']
|
||||
|
||||
def __init__(self, *arg, **kwarg):
|
||||
super(CustomerForm, self).__init__(*arg, **kwarg)
|
||||
self.helper = FormHelper()
|
||||
self.fields['name'].label = "Ονοματεπώνυμο"
|
||||
self.fields['address'].label = "Διεύθυνση"
|
||||
self.fields['telephone'].label = "Τηλέφωνο"
|
||||
self.fields['email'].label = "email"
|
||||
self.fields['social_media'].label = "Facebook/Instagram κτλ."
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('name'),
|
||||
Field('address'),
|
||||
Field('telephone'),
|
||||
Field('email'),
|
||||
Field('social_media'),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'Αποθήκευση')),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class ProductForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Product
|
||||
fields = ['name']
|
||||
|
||||
def __init__(self, *arg, **kwarg):
|
||||
super(ProductForm, self).__init__(*arg, **kwarg)
|
||||
self.helper = FormHelper()
|
||||
self.fields['name'].label = "Τύπος Προϊόντος"
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('name'),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'Αποθήκευση')),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class StoreForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Store
|
||||
fields = ['name', 'address', 'telephone']
|
||||
|
||||
def __init__(self, *arg, **kwarg):
|
||||
super(StoreForm, self).__init__(*arg, **kwarg)
|
||||
self.helper = FormHelper()
|
||||
self.fields['name'].label = "Όνομα"
|
||||
self.fields['address'].label = "Διεύθυνση"
|
||||
self.fields['telephone'].label = "Τηλέφωνο"
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('name'),
|
||||
Field('address'),
|
||||
Field('telephone'),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'Αποθήκευση')),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class OrderLine(forms.ModelForm):
|
||||
class Meta:
|
||||
model = OrderProduct
|
||||
fields = ['id', 'order', 'product', 'amount', 'cake_type', 'cake_type_num', 'cake_color', 'cake_color_other', 'fyt_color', 'fyt_color_other', 'cake_flavor', 'cake_img', 'cream_cake_3d', 'cream_cake_height', 'cream_cake_img', 'engagement_cake_type', 'engagement_cake_base', 'engagement_cake_pcs', 'engagement_cake_pcs_other', 'engagement_cake_glaze', 'cup_flavor', 'cup_color', 'cup_color_other', 'cup_type', 'candy_bar_type', 'candy_bar_decor', 'candy_bar_decor_other', 'candy_bar_wrap', 'info']
|
||||
widgets = {
|
||||
'product': AddAnotherWidgetWrapper(
|
||||
forms.Select(attrs={'onchange': 'showFields(this);'}),
|
||||
reverse_lazy('orders_app:product_create'),
|
||||
),
|
||||
'cake_color': forms.Select(attrs={'onchange': 'showOtherFields(this);'}),
|
||||
'fyt_color': forms.Select(attrs={'onchange': 'showOtherFields(this);'}),
|
||||
'engagement_cake_pcs': forms.Select(attrs={'onchange': 'showOtherFields(this);'}),
|
||||
'cup_color': forms.Select(attrs={'onchange': 'showOtherFields(this);'}),
|
||||
'candy_bar_decor': forms.Select(attrs={'onchange': 'showOtherFields(this);'}),
|
||||
'info': forms.Textarea(attrs={'rows': 2, 'cols': 30}),
|
||||
}
|
||||
|
||||
def __init__(self, *arg, **kwarg):
|
||||
super(OrderLine, self).__init__(*arg, **kwarg)
|
||||
self.empty_permitted = False
|
||||
self.fields['product'].label = "Προϊόν"
|
||||
self.fields['amount'].label = "Ποσότητα"
|
||||
self.fields['cake_type'].label = "Τύπος"
|
||||
self.fields['cake_type_num'].label = "Νούμερο"
|
||||
self.fields['cake_color'].label = "Χρώμα"
|
||||
self.fields['cake_color_other'].label = "Άλλο Χρώμα"
|
||||
self.fields['fyt_color'].label = "Φυτιλάκι-Χρώμα"
|
||||
self.fields['fyt_color_other'].label = "Φυτιλάκι-Χρώμα Άλλο"
|
||||
self.fields['cake_flavor'].label = "Γεύση"
|
||||
self.fields['cake_img'].label = "Φωτογραφία"
|
||||
self.fields['cream_cake_3d'].label = "3D"
|
||||
self.fields['cream_cake_height'].label = "Ύψος"
|
||||
self.fields['cream_cake_img'].label = "Φωτογραφία"
|
||||
self.fields['engagement_cake_type'].label = "Τύπος"
|
||||
self.fields['engagement_cake_base'].label = "Βάση"
|
||||
self.fields['engagement_cake_pcs'].label = "Τεμάχια"
|
||||
self.fields['engagement_cake_pcs_other'].label = "Τεμάχια Άλλο"
|
||||
self.fields['engagement_cake_glaze'].label = "Γλάσσο/Σαντιγύ"
|
||||
self.fields['cup_flavor'].label = "Γεύση"
|
||||
self.fields['cup_color'].label = "Χρώμα"
|
||||
self.fields['cup_color_other'].label = "Άλλο Χρώμα"
|
||||
self.fields['cup_type'].label = "Τύπος"
|
||||
self.fields['candy_bar_type'].label = "Τύπος CandyBar"
|
||||
self.fields['candy_bar_decor'].label = "Ντεκόρ CandyBar"
|
||||
self.fields['candy_bar_decor_other'].label = "Ντεκόρ CandyBar Άλλο"
|
||||
self.fields['candy_bar_wrap'].label = "Τύλιγμα CandyBar"
|
||||
self.fields['info'].label = "Πληροφορίες"
|
||||
|
||||
|
||||
OrderLineFormSet = inlineformset_factory(
|
||||
Order, OrderProduct, form=OrderLine,
|
||||
fields=['id', 'order', 'product', 'amount', 'cake_type', 'cake_type_num', 'cake_color', 'cake_color_other', 'fyt_color', 'fyt_color_other', 'cake_flavor', 'cake_img', 'cream_cake_3d', 'cream_cake_height', 'cream_cake_img', 'engagement_cake_type', 'engagement_cake_base', 'engagement_cake_pcs', 'engagement_cake_pcs_other', 'engagement_cake_glaze', 'cup_flavor', 'cup_color', 'cup_color_other', 'cup_type', 'candy_bar_type', 'candy_bar_decor', 'candy_bar_decor_other', 'candy_bar_wrap', 'info'], extra=1, can_delete=True
|
||||
)
|
||||
|
||||
OrderLineFormSetEdit = inlineformset_factory(
|
||||
Order, OrderProduct, form=OrderLine,
|
||||
fields=['id', 'order', 'product', 'amount', 'cake_type', 'cake_type_num', 'cake_color', 'cake_color_other', 'fyt_color', 'fyt_color_other', 'cake_flavor', 'cake_img', 'cream_cake_3d', 'cream_cake_height', 'cream_cake_img', 'engagement_cake_type', 'engagement_cake_base', 'engagement_cake_pcs', 'engagement_cake_pcs_other', 'engagement_cake_glaze', 'cup_flavor', 'cup_color', 'cup_color_other', 'cup_type', 'candy_bar_type', 'candy_bar_decor', 'candy_bar_decor_other', 'candy_bar_wrap', 'info'], extra=0, can_delete=True
|
||||
)
|
||||
|
||||
|
||||
class OrderForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Order
|
||||
fields = ['order_status', 'customer_name', 'customer_address', 'customer_telephone', 'customer_email', 'delivery', 'delivery_date', 'store', 'order_info', 'order_products']
|
||||
widgets = {
|
||||
'delivery_date': forms.DateInput(attrs={'type': 'text', 'id': 'delivery_date', 'class': 'datepicker'}),
|
||||
'store': AddAnotherWidgetWrapper(
|
||||
forms.Select,
|
||||
reverse_lazy('orders_app:store_create'),
|
||||
),
|
||||
'order_info': forms.Textarea(attrs={'rows': 2, 'cols': 30}),
|
||||
# 'info': forms.Textarea(attrs={'type': 'text', 'id': 'order_date', 'class': 'datepicker'}),
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OrderForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.form_tag = True
|
||||
self.helper.render_hidden_fields = True
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.label_class = 'col-md-3 create-label'
|
||||
self.helper.field_class = 'col-md-9'
|
||||
self.helper.attrs['autocomplete'] = 'off'
|
||||
self.fields['order_status'].label = "Κατάσταση Παραγγελίας"
|
||||
self.fields['customer_name'].label = "Πελάτης"
|
||||
self.fields['customer_telephone'].label = "Τηλέφωνο"
|
||||
self.fields['customer_address'].label = "Διεύθυνση"
|
||||
self.fields['customer_email'].label = "email"
|
||||
self.fields['delivery'].label = "Παράδοση"
|
||||
self.fields['delivery_date'].label = "Ημέρα Παράδοσης"
|
||||
self.fields['store'].label = "Κατάστημα"
|
||||
self.fields['order_info'].label = "Σχόλια Παραγγελίας"
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('order_status'),
|
||||
Field('customer_name'),
|
||||
Field('customer_address'),
|
||||
Field('customer_telephone'),
|
||||
Field('customer_email'),
|
||||
Field('delivery'),
|
||||
Field('delivery_date'),
|
||||
Field('store'),
|
||||
Field('order_info'),
|
||||
HTML("<br>"),
|
||||
Fieldset('Προϊόντα Παραγγελίας',
|
||||
Formset('order_products')),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'Αποθήκευση')),
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,90 @@
|
||||
from crispy_forms.helper import FormHelper
|
||||
from crispy_forms.layout import Layout, Field, Fieldset, Div, HTML, ButtonHolder, Submit
|
||||
from .custom_layout_object import *
|
||||
from django import forms
|
||||
from django.contrib import admin
|
||||
from django.urls import reverse_lazy
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django_addanother.widgets import AddAnotherWidgetWrapper
|
||||
|
||||
from orders_app.custom_layout_object import Formset
|
||||
from orders_app.models import Order, OrderProduct, CollectionTitle, Collection
|
||||
|
||||
|
||||
class OrderForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Order
|
||||
exclude = ()
|
||||
widgets = {
|
||||
'store': AddAnotherWidgetWrapper(
|
||||
forms.Select,
|
||||
reverse_lazy('orders_app:create_store'),
|
||||
),
|
||||
|
||||
}
|
||||
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(OrderForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.form_tag = True
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.label_class = 'col-md-3 create-label'
|
||||
self.helper.field_class = 'col-md-9'
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('subject'),
|
||||
Field('owner'),
|
||||
Fieldset('Add titles',
|
||||
Formset('titles')),
|
||||
Field('note'),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'save')),
|
||||
)
|
||||
)
|
||||
|
||||
class StoreForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Order
|
||||
fields = "__all__"
|
||||
|
||||
|
||||
OrderLinesFormSet = inlineformset_factory(Order, OrderProduct, form=OrderForm, fields=['product', 'name'], extra=1, can_delete=True)
|
||||
|
||||
|
||||
class CollectionTitleForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = CollectionTitle
|
||||
exclude = ()
|
||||
|
||||
CollectionTitleFormSet = inlineformset_factory(
|
||||
Collection, CollectionTitle, form=CollectionTitleForm,
|
||||
fields=['name', 'language'], extra=1, can_delete=True
|
||||
)
|
||||
|
||||
|
||||
class CollectionForm(forms.ModelForm):
|
||||
|
||||
class Meta:
|
||||
model = Collection
|
||||
exclude = ['created_by', ]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CollectionForm, self).__init__(*args, **kwargs)
|
||||
self.helper = FormHelper()
|
||||
self.helper.form_tag = True
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.label_class = 'col-md-3 create-label'
|
||||
self.helper.field_class = 'col-md-9'
|
||||
self.helper.layout = Layout(
|
||||
Div(
|
||||
Field('subject'),
|
||||
Field('owner'),
|
||||
Fieldset('Add titles',
|
||||
Formset('titles')),
|
||||
Field('note'),
|
||||
HTML("<br>"),
|
||||
ButtonHolder(Submit('submit', 'Save')),
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,60 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-30 15:47
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import phonenumber_field.modelfields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Customer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Product',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ProductAttrs',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=300)),
|
||||
('value', models.FloatField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ProductType',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=300)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Store',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('address', models.CharField(max_length=300)),
|
||||
('telephone', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Order',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('order_date', models.DateField()),
|
||||
('delivery_date', models.DateField()),
|
||||
('store', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders_app.store')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-30 15:49
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameModel(
|
||||
old_name='ProductAttrs',
|
||||
new_name='ProductAttr',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 05:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0002_auto_20210330_1849'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attributes',
|
||||
field=models.ManyToManyField(to='orders_app.ProductAttr'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 05:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0003_producttype_attributes'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='productattr',
|
||||
name='value',
|
||||
field=models.CharField(max_length=30),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,101 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:06
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import phonenumber_field.modelfields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0004_auto_20210331_0826'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='value',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attributes',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='address',
|
||||
field=models.CharField(default='AZ', max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='facebook_instagram',
|
||||
field=models.CharField(default='AZ', max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='name',
|
||||
field=models.CharField(default='AZ', max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='telephone',
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(default='+306955242965', max_length=128, region=None),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='amount',
|
||||
field=models.FloatField(default=0.0),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='attr1',
|
||||
field=models.CharField(default='AZ', max_length=30),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='attr2',
|
||||
field=models.CharField(default='AZ', max_length=30),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='attr_name',
|
||||
field=models.CharField(default='AZ', max_length=30),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='color',
|
||||
field=models.CharField(default='AZ', max_length=30),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='product',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.product'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='product_type',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.producttype'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='members',
|
||||
field=models.ManyToManyField(through='orders_app.ProductAttr', to='orders_app.Product'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='producttype',
|
||||
name='name',
|
||||
field=models.CharField(default='AZ', max_length=300),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,60 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:09
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0005_auto_20210331_1006'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='amount',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='attr1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='attr2',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='color',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='attr_value',
|
||||
field=models.CharField(default='0', max_length=30),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='address',
|
||||
field=models.CharField(max_length=300),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='facebook_instagram',
|
||||
field=models.CharField(max_length=300),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='name',
|
||||
field=models.CharField(max_length=300),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='productattr',
|
||||
name='attr_name',
|
||||
field=models.CharField(max_length=30),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='producttype',
|
||||
name='name',
|
||||
field=models.CharField(max_length=300),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,25 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:14
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0006_auto_20210331_1009'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='product',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='product_type',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='members',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,58 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:21
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0007_auto_20210331_1014'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='customer',
|
||||
name='address',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='customer',
|
||||
name='facebook_instagram',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='customer',
|
||||
name='name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='customer',
|
||||
name='telephone',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='attr_name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='productattr',
|
||||
name='attr_value',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='name',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='productattr',
|
||||
name='value',
|
||||
field=models.FloatField(default='0'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attributes',
|
||||
field=models.ManyToManyField(to='orders_app.ProductAttr'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,84 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:47
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import phonenumber_field.modelfields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0008_auto_20210331_1021'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attributes',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='address',
|
||||
field=models.CharField(blank=True, max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='name',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='social_media',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='telephone',
|
||||
field=phonenumber_field.modelfields.PhoneNumberField(blank=True, max_length=128, region=None),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='amount',
|
||||
field=models.FloatField(default='0'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='attr1',
|
||||
field=models.IntegerField(blank=True, default='1'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color1',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color2',
|
||||
field=models.CharField(blank=True, max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color3',
|
||||
field=models.CharField(blank=True, max_length=300),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
field=models.CharField(default='qa', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='type',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.producttype'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='ProductAttr',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0009_auto_20210331_1047'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='product',
|
||||
field=models.ManyToManyField(to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:52
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0010_order_product'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='type',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='type',
|
||||
field=models.ManyToManyField(to='orders_app.ProductType'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,46 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 07:58
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0011_auto_20210331_1052'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ProductAttrs',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=300)),
|
||||
],
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='attr1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='color1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='color2',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='color3',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='product',
|
||||
name='amount',
|
||||
field=models.FloatField(blank=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attr',
|
||||
field=models.ManyToManyField(blank=True, to='orders_app.ProductAttrs'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:00
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0012_auto_20210331_1058'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='producttype',
|
||||
name='attr',
|
||||
field=models.ManyToManyField(to='orders_app.ProductAttrs'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:02
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0013_auto_20210331_1100'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='productattrs',
|
||||
name='value',
|
||||
field=models.CharField(default='az', max_length=300),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,80 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0014_productattrs_value'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attr',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attr1',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attr2',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attr3',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='attr4',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='color1',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='color2',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='producttype',
|
||||
name='color3',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='address',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='name',
|
||||
field=models.CharField(max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='social_media',
|
||||
field=models.CharField(max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='producttype',
|
||||
name='name',
|
||||
field=models.CharField(max_length=128),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='store',
|
||||
name='address',
|
||||
field=models.CharField(max_length=128),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='ProductAttrs',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:07
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0015_auto_20210331_1105'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='type',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='type',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.producttype'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,20 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:09
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0016_auto_20210331_1107'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='customer',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.customer'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:10
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0017_order_customer'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='customer',
|
||||
name='social_media',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:36
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0018_auto_20210331_1110'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='amount',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='amount',
|
||||
field=models.FloatField(blank=True, default='0'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,82 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:54
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0019_auto_20210331_1136'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attr1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attr2',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attr3',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='attr4',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='color1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='color2',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='producttype',
|
||||
name='color3',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='attr1',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='attr2',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='attr3',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='attr4',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color1',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color2',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='color3',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
field=models.CharField(default='Cale', max_length=128),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 08:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0020_auto_20210331_1154'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='amount',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='amount',
|
||||
field=models.FloatField(blank=True, default='0'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.1.7 on 2021-03-31 09:01
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0021_auto_20210331_1159'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='store',
|
||||
name='name',
|
||||
field=models.CharField(default='Spiti 1', max_length=128),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,79 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 08:32
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import phonenumber_field.modelfields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Customer',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128)),
|
||||
('address', models.CharField(blank=True, max_length=128)),
|
||||
('telephone', phonenumber_field.modelfields.PhoneNumberField(blank=True, max_length=128, region=None)),
|
||||
('social_media', models.CharField(blank=True, max_length=128)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Order',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('order_id', models.CharField(max_length=32)),
|
||||
('order_date', models.DateField()),
|
||||
('delivery_date', models.DateField()),
|
||||
('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders_app.customer')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Product',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Store',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128)),
|
||||
('address', models.CharField(max_length=128)),
|
||||
('telephone', phonenumber_field.modelfields.PhoneNumberField(max_length=128, region=None)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='OrderProduct',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128)),
|
||||
('amount', models.FloatField(blank=True)),
|
||||
('color1', models.CharField(blank=True, max_length=128)),
|
||||
('color2', models.CharField(blank=True, max_length=128)),
|
||||
('color3', models.CharField(blank=True, max_length=128)),
|
||||
('attr1', models.CharField(blank=True, max_length=128)),
|
||||
('attr2', models.CharField(blank=True, max_length=128)),
|
||||
('attr3', models.CharField(blank=True, max_length=128)),
|
||||
('attr4', models.CharField(blank=True, max_length=128)),
|
||||
('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders_app.order')),
|
||||
('type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders_app.product')),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(related_name='_order_order_products_+', to='orders_app.OrderProduct'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='store',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='orders_app.store'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 08:36
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='order',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 08:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0002_remove_orderproduct_order'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='name2',
|
||||
field=models.CharField(default='az', max_length=128),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,37 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 09:15
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0003_orderproduct_name2'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='orderproduct',
|
||||
old_name='type',
|
||||
new_name='product',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='order_id',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='name2',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='order',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.order'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 09:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0004_auto_20210401_1215'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 09:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0005_order_order_products'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_id',
|
||||
field=models.CharField(default='00000', max_length=32),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,39 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 09:30
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0006_order_order_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='order',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='product',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='order',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.order'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='product',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.orderproduct'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(related_name='_order_order_products_+', through='orders_app.Product', to='orders_app.OrderProduct'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,51 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-01 09:39
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0007_auto_20210401_1230'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='attr3',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='attr4',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='color3',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='order',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='product',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='order',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.order'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='product',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.product'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(related_name='_order_order_products_+', through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,35 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 05:48
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('orders_app', '0008_auto_20210401_1239'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Collection',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('subject', models.CharField(blank=True, max_length=300)),
|
||||
('owner', models.CharField(blank=True, max_length=300)),
|
||||
('note', models.TextField(blank=True)),
|
||||
('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='collections', to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CollectionTitle',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=500, verbose_name='Title')),
|
||||
('language', models.CharField(max_length=3)),
|
||||
('collection', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='has_titles', to='orders_app.collection')),
|
||||
],
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 08:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0009_collection_collectiontitle'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='attr1',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='attr2',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='info',
|
||||
field=models.CharField(blank=True, max_length=512),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,26 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 08:39
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0010_auto_20210402_1137'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='orderproduct',
|
||||
old_name='color1',
|
||||
new_name='color',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='color2',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='name',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 10:19
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0011_auto_20210402_1139'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='color2',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 10:22
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0012_orderproduct_color2'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='orderproduct',
|
||||
old_name='color',
|
||||
new_name='color1',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 10:23
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0013_auto_20210402_1322'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='orderproduct',
|
||||
name='amount',
|
||||
field=models.FloatField(),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,32 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 11:25
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0014_auto_20210402_1323'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='collectiontitle',
|
||||
name='collection',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='order_id',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(blank=True, related_name='_order_order_products_+', through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='Collection',
|
||||
),
|
||||
migrations.DeleteModel(
|
||||
name='CollectionTitle',
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 11:59
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0015_auto_20210402_1425'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(related_name='_order_order_products_+', through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 12:12
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0016_auto_20210402_1459'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(blank=True, related_name='_order_order_products_+', through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 17:42
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0017_auto_20210402_1512'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='orderproduct',
|
||||
name='customer',
|
||||
field=models.ForeignKey(default='1', on_delete=django.db.models.deletion.CASCADE, to='orders_app.customer'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-02 17:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0018_auto_20210402_2042'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='orderproduct',
|
||||
name='customer',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_products',
|
||||
field=models.ManyToManyField(blank=True, related_name='_order_order_products_+', through='orders_app.OrderProduct', to='orders_app.Product'),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-03 08:05
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0019_auto_20210402_2045'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='orderproduct',
|
||||
name='amount',
|
||||
field=models.FloatField(blank=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-03 11:29
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0020_auto_20210403_1105'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('ΝΕΑ', 'ΝΕΑ'), ('ΕΠΕ', 'ΕΠΕ'), ('ΕΤΜ', 'ΕΤΟΙΜΗ')], default='ΝΕΑ', max_length=3),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='order_date',
|
||||
field=models.DateTimeField(auto_now_add=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-03 11:33
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0021_auto_20210403_1429'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='delivery_date',
|
||||
field=models.DateTimeField(),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('ΝΕΑ', 'ΝΕΑ'), ('ΕΠΕ', 'ΥΠΟ ΕΠΕΞΕΡΓΑΣΙΑ'), ('ΕΤΜ', 'ΕΤΟΙΜΗ')], default='ΝΕΑ', max_length=3),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-03 11:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0022_auto_20210403_1433'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='delivery_date',
|
||||
field=models.DateField(),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-04 05:40
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0023_auto_20210403_1437'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='orderproduct',
|
||||
name='amount',
|
||||
field=models.FloatField(validators=[django.core.validators.MinValueValidator(0.01), django.core.validators.MaxValueValidator(999)]),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-04 10:13
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0024_auto_20210404_0840'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='order',
|
||||
name='status',
|
||||
field=models.CharField(choices=[('ΝΕΑ', 'ΝΕΑ'), ('ΕΠΕ', 'ΥΠΟ ΕΠΕΞΕΡΓΑΣΙΑ'), ('ΕΤΜ', 'ΕΤΟΙΜΗ')], max_length=3),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-04 10:20
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0025_auto_20210404_1313'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='order',
|
||||
name='status',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_status',
|
||||
field=models.CharField(choices=[('ΝΕΑ', 'ΝΕΑ'), ('ΕΠΕ', 'ΥΠΟ ΕΠΕΞΕΡΓΑΣΙΑ'), ('ΕΤΜ', 'ΕΤΟΙΜΗ')], default='ΝΕΑ', max_length=3),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-05 07:19
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0026_auto_20210404_1320'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='order',
|
||||
name='order_info',
|
||||
field=models.CharField(blank=True, max_length=512),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.1.7 on 2021-04-05 07:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('orders_app', '0027_order_order_info'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='customer',
|
||||
name='email',
|
||||
field=models.CharField(blank=True, max_length=128),
|
||||
),
|
||||
]
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user