firstyear / beerclub Goto Github PK
View Code? Open in Web Editor NEWThe most amazing beerclub software for business and enterprise usage.
The most amazing beerclub software for business and enterprise usage.
There should be nicer forms for this that don't rely on the admin UI.
There need to be unit tests, especially around the financially components of the code.
If you are already authenticated the login page should redirect you to index.
Right now if a beer doesn't exist during a stocktake, because of the way the transaction is opened, you can't add a new beer to the DB and then scan it in as part of the stocktake. So you have to sit it to the side and scan it in a new purchase.
Stocktake should be able to attach a barcode to a beer. The process should be that you scan all the barcodes, and stocktake tells you if a barcode (and quantity) doesn't match a beer. You can then link the barcode to a beer inst, and the stock take works. Else you should be able to create the beer and beerinst then link the barcodes to them.
django.utils.encoding.DjangoUnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 38: ordinal not in range(128). You passed in <Stock: [Bad Unicode data]> (<class 'beerclub.models.Stock'>)
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib64/python2.7/site-packages/django/core/management/base.py", line 399, in execute
output = self.handle(*args, **options)
File "/usr/lib64/python2.7/site-packages/django/utils/decorators.py", line 184, in inner
return func(*args, **kwargs)
File "/var/www/django/its_django/beerclub/management/commands/negative_stock_fix.py", line 20, in handle
print(si)
File "/usr/lib64/python2.7/site-packages/django/db/models/base.py", line 466, in __str__
return force_text(self).encode('utf-8')
File "/usr/lib64/python2.7/site-packages/django/utils/encoding.py", line 88, in force_text
raise DjangoUnicodeDecodeError(s, *e.args)
The issue appears to be with utf-8 characters. For example - "Saison 4 årstider Høst, HaandBryggerie"
'ascii' codec can't decode byte 0xc3 in position 42: ordinal not in range(128). You passed in <Stock: [Bad Unicode data]> (<class 'beerclub.models.Stock'>)
We should be able to look at past years legends and stats. Add a history page to be able to show this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.