-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,233 changed files
with
443 additions
and
239,003 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<mxfile host="Electron" modified="2019-11-25T20:51:55.959Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/12.2.2 Chrome/78.0.3904.94 Electron/7.1.0 Safari/537.36" etag="37Lxrrpys0sd06RsWiGR" version="12.2.2" type="device" pages="1"><diagram id="4ATyxtASWGsD7okkcSDV" name="Seite-1">7VxLc6M4EP41vmyVKcTTPo6dmZ3DZCuVzNbuHGUjG2oAsaDE9vz6lUCykQBDErA9sXNILCFaj/7U/XVLzsicR9s/U5j499hD4cjQve3IvBsZxtTV6W9WsSsqbNctKtZp4BVV4FDxFPxCvJK/t34OPJRJDQnGIQkSuXKJ4xgtiVQH0xRv5GYrHMq9JnCNKhVPSxhWa/8JPOLzWuBMDw++omDt864nBp9fBEVjPpPMhx7elKrMzyNznmJMik/Rdo5CtnZiXYr3vjQ83Q8sRTHp8sImQn+Pv44fzenf6yXI/sLjbTa2CikvMHyWJ5yRnVgCFHuf2ErSEk5QPDJnPolCWgL0I33IlQbojGYZgSkRrb0ARjj2vvtBLB6Jtpao+BKETJTORHl05Xm3OCU+XuMYhp8PtTMYBmsq6i5EKzrl2QtKSUBV9YlXLzAhOMoHRdLdv0IsK/xgBc2wRfluW356txOlbUDy9zSbl36IedLPh5dYQbxTrBcbfKNixJri53SJjmjDcDjCYbpG5FhDdw8guvEQjhCdBX2R77ox75DvObMopSiEJHiRhwn5/ljvhezlPuCATmAvFIitzKUauiKimB5/qwxERZBhKoJcRxZUTL8iiH4oTfZQleP8F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gW4KP3NBGTTrSk/yrbb07Ie7J2ld60XJlkvUg92UHAOgyRn+sXUqZdsnSAS800uBUTl5YF+el7LrcfNOVNhKcG+9NUsAWgQNnCWwq1mCKrH+KGkC+5LSBHY1TVA15B8mT9Cy9Kdd+d/hOtz3XXK7EnfiixwXdiPOrp6W6poGip25fE7zeVEU0l1NgnidUTXAiC1wvMiSOnVkPkxQzhMIc/0bPyDoKYG5o92kMJFXNCtFyZ0UmVFRdBzf2bO7sdOPUiwlFqPxV1UtoEYt5mBqeV22gpMyD2Y+8vjSSqkLwb80c1/OA35tX2yiYKw05FFMV45lN2QCSiqyazRk95MTUKN1oG7IrlxMuRFrqQgamopVY/h+cKXTLSNxe3ZEel5odb5/dV5oKR7BmvyeyHKqJP8RLXHqVT3EJohCmAMrd8L8CdP+0g9C7xvc4We2xhmhhFKUZj5Og1+0Pdz7jlKa1WCegHl2wTxFmLp/6YkJ493kjBc9CEwBpeoebqWG32BGxABxGMIkCwq6Cva8bcaJcAnD7/JIrnKwa7h2N6LgTlrx98j4drxm34bYO8CJAh4BylJ305reDOV72jCkOzmGBM1YFJANgrNqSDMyGBn2aLcVrPEkVUZS/BMp2KiBS0ukWTASTkG+5W3urEPNI18YSyacfuB5+WFCigkkjfmxGV3fOctu2HTgc1oGh3KePEtwSuY4pnOBQY4iRHG5QRnpCrlXfQ1uJ2u4DXcqEnpjQk71nnGh75/RTdt9a1vkC86n7WrYfM9Dj5sfeUtko361xaka9loNA90aSsV138GaiRizyAek9czhtr9b93dDJvpirHldXJt77yC76X9w/Z/fvtfFn0z/cFmEUEz7C4xDBOOb+vtWvwgOBlA/LR7+cVnB9Q///c38/D8=</diagram></mxfile> | ||
<mxfile host="Electron" modified="2019-11-29T00:28:38.560Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/12.2.2 Chrome/78.0.3904.94 Electron/7.1.0 Safari/537.36" etag="3aCQOQgYCiBAgm2DXe4j" version="12.2.2" type="device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ciPdyj4S7IF+zNhNrS3ngjLFkh9MPPC87z04wgWRnWmpE+TtmOQabTnxMy2BbznJWMU7IGEd0LTDIgIUoLlcoJbWQ279JDwNxI0v4EO5UJLTmCTnVW025vH8sr9JuW9oiaj+dtKvB6x0PPa525D2RjXqR1qkq9loJA906lojrbnyPRIyZpxOSes/hur/rN8sFafO6uDaz3kF6lf/R5X96/V4XfzL5w1keQjHpTzEOEYyu4m9b/CI46EL8fw69p+fnv289gv3v8Tfvxp18F3erTn4P9Fjv15qW2ZMvVYly80tVH7tVqiQ1jn0e6ez1Po54T940h5pT+rjKKO89sSzSJkWC3tbM8seV++32Gn3tpqoGSGd7/aXx1QcZt7t1yb4rEpd7ib52vb/obxOcXtsJa9fwLuoptJ0rv5c+VEDXVLkBY6/SpPXa4Lx1XTU98FvoOus303XVFMHTClNCfqKQ0m94Xj2J1mENrfidATV7dJpz6hpUVHTWTkGrb8AYNWl6oNc49OpObs2hb/WY+n06fR+ADr8nZdczvJujP0u5HgcMS7MGA9sYAjAwh8BVcnCNnViXhiLGcPuRRzEtzVR+haStV6fUn5fg9xhqX506rCxocfu7ZXnz7Y+/mZ//Bw==</diagram></mxfile> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
from django.db import models | ||
|
||
|
||
class BicycleType(models.Model): | ||
name = models.CharField(max_length=100) | ||
|
||
component = models.ManyToManyField | ||
|
||
def __str__(self): | ||
return str(self.name) | ||
|
||
|
||
# A bicycle has Component which are maintained | ||
class Bicycle(models.Model): | ||
name = models.CharField(max_length=100) | ||
|
||
bicycle_type = models.ForeignKey(BicycleType, on_delete=models.CASCADE) | ||
|
||
def __str__(self): | ||
return str(self.name) | ||
|
||
|
||
# A bicycle is structured into components. For instance front wheel, gear etc. | ||
class Component(models.Model): | ||
name = models.CharField(max_length=100) | ||
|
||
def __str__(self): | ||
return str(self.name) | ||
|
||
|
||
# Parts of a component. For instance front wheel: tube, tire, left spokes. | ||
# This is a simplified model of the real world. There is no position within a part, e.g. spokes(1) | ||
class Part(models.Model): | ||
name = models.CharField(max_length=100) | ||
|
||
component = models.ForeignKey(Component, on_delete=models.CASCADE) | ||
|
||
def display_long_name(self): | ||
return "{}/{}".format(self.component.name, self.name) | ||
|
||
def __str__(self): | ||
return "{}/{}".format(str(self.component.name), str(self.name)) | ||
|
||
# Point in time of a bycicle to record its data | ||
|
||
|
||
class Record(models.Model): | ||
date = models.DateField() | ||
km = models.DecimalField(max_digits=10, decimal_places=0, ) | ||
|
||
bicycle = models.ForeignKey(Bicycle, on_delete=models.CASCADE) | ||
|
||
def __str__(self): | ||
return "{} {}".format(str(self.date), str(self.bicycle.name)) | ||
|
||
|
||
# A material is a physically part of a bicycle. It can be installed at removed, but it must not be used, e.g. when a | ||
# new tube is bought, it has yet no relation to an bicyle. | ||
class Material(models.Model): | ||
name = models.CharField(max_length=100) | ||
|
||
manufacture = models.CharField(max_length=100) | ||
size = models.CharField(max_length=100, blank=True, null=True) | ||
price = models.DecimalField(max_digits=10, decimal_places=2, blank=True, null=True) | ||
weight = models.DecimalField(max_digits=10, decimal_places=3, name="Weight [g]", blank=True, null=True) | ||
|
||
def __str__(self): | ||
return str(self.name) | ||
|
||
|
||
class Mounting(models.Model): | ||
|
||
material = models.ForeignKey(Material, related_name="material", on_delete=models.CASCADE, blank=True, | ||
null=True) | ||
|
||
mount_record = models.ForeignKey(Record, related_name="mount_record", on_delete=models.CASCADE, blank=True, | ||
null=True) | ||
|
||
part = models.ForeignKey(Part, on_delete=models.CASCADE, blank=True, null=True) | ||
|
||
# Optional | ||
dismount_record = models.ForeignKey(Record, related_name="dismount_record", on_delete=models.CASCADE, blank=True, | ||
null=True) | ||
|
||
def __str__(self): | ||
return "{} {}".format(str(self.material.name), str(self.mount_record.date)) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,54 @@ | ||
from django.contrib import admin | ||
|
||
from .models import Component | ||
from .models import Component, Mounting, Species | ||
from .models import Part | ||
from .models import Bicycle | ||
from .models import Record | ||
from .models import Material | ||
#from .models import Mounting | ||
|
||
|
||
class ComponentInline(admin.TabularInline): | ||
model = Component | ||
extra = 1 | ||
ordering = ["name"] | ||
|
||
|
||
class RecordInline(admin.TabularInline): | ||
model = Record | ||
extra = 1 | ||
ordering = ["-date"] | ||
|
||
|
||
class BicycleAdmin(admin.ModelAdmin): | ||
inlines = [RecordInline] | ||
ordering = ["name"] | ||
|
||
admin.site.register(Bicycle, BicycleAdmin) | ||
|
||
class SpeciesAdmin(admin.ModelAdmin): | ||
inlines = [ComponentInline] | ||
ordering = ["name"] | ||
|
||
|
||
class PartInline(admin.TabularInline): | ||
model = Part | ||
extra = 3 | ||
|
||
|
||
|
||
class ComponentAdmin(admin.ModelAdmin): | ||
inlines = [PartInline] | ||
ordering = ["name"] | ||
|
||
admin.site.register(Component, ComponentAdmin) | ||
|
||
|
||
class MaterialAdmin(admin.ModelAdmin): | ||
list_display =('name', 'manufactor', 'size', 'mounted_in_bicycle') | ||
|
||
admin.site.register(Material, MaterialAdmin) | ||
list_display = ('name', 'manufacture', 'size',) | ||
|
||
|
||
class MountingAdmin(admin.ModelAdmin): | ||
ordering = ["mount_record__date"] | ||
|
||
|
||
admin.site.register(Bicycle, BicycleAdmin) | ||
admin.site.register(Species, SpeciesAdmin) | ||
admin.site.register(Component, ComponentAdmin) | ||
admin.site.register(Material, MaterialAdmin) | ||
admin.site.register(Mounting, MountingAdmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 07:02 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0017_auto_20191127_0701'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='BicycleType', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=100)), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 07:17 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0018_bicycletype'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='bicycle', | ||
name='bicycle_type', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='myequis.BicycleType'), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 07:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0019_bicycle_bicycle_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='bicycletype', | ||
name='component', | ||
field=models.ManyToManyField(to='myequis.Component'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 16:51 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0020_bicycletype_component'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='material', | ||
name='dismount_record', | ||
), | ||
migrations.RemoveField( | ||
model_name='material', | ||
name='mount_record', | ||
), | ||
migrations.RemoveField( | ||
model_name='material', | ||
name='part', | ||
), | ||
migrations.CreateModel( | ||
name='Mounting', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('dismount_record', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='dismount_record', to='myequis.Record')), | ||
('material', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='material', to='myequis.Material')), | ||
('mount_record', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mount_record', to='myequis.Record')), | ||
('part', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='myequis.Part')), | ||
], | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:02 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0021_auto_20191127_1651'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='bicycletype', | ||
name='component', | ||
), | ||
migrations.AddField( | ||
model_name='component', | ||
name='bicycle_type', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='myequis.BicycleType'), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:14 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0022_auto_20191127_1702'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='bicycle', | ||
old_name='bicycle_type', | ||
new_name='type', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:17 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('myequis', '0023_auto_20191127_1714'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='component', | ||
old_name='bicycle_type', | ||
new_name='type', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:22 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
atomic = False | ||
dependencies = [ | ||
('myequis', '0024_auto_20191127_1717'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name='BicycleType', | ||
new_name='Species', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:23 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
atomic = False | ||
dependencies = [ | ||
('myequis', '0025_auto_20191127_1722'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name='Species', | ||
new_name='BicycleType', | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.6 on 2019-11-27 17:27 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
atomic = False | ||
dependencies = [ | ||
('myequis', '0026_auto_20191127_1723'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name='BicycleType', | ||
new_name='Species', | ||
), | ||
] |
Oops, something went wrong.