Skip to content
This repository has been archived by the owner on Feb 19, 2019. It is now read-only.

Commit

Permalink
Bug 764187 - Adding version field support for DLL files.
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonsavage committed Jun 13, 2012
1 parent 729e535 commit 4be3e71
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/dll/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class File(models.Model):
modified_by = models.ForeignKey(User, related_name="modified_by")
file_name = models.CharField(max_length=200)
common_name = models.CharField(max_length=200, blank=True, null=True)
version = models.CharField(max_length=100, blank=True, null=True)
vendor = models.CharField(max_length=200, blank=True, null=True)
distributors = models.CharField(max_length=200, blank=True, null=True)
md5_hash = models.CharField(max_length=32, blank=True, null=True)
Expand Down
1 change: 1 addition & 0 deletions apps/dll/templates/dll/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<tr><th>Modified</th><td>{{ dll_datetime_format(dlldata.date_modified) }} by {{ dlldata.modified_by }}</td></tr>
<tr><th>File Name</th><td>{{ dlldata.file_name }}</td></tr>
<tr><th>Common Name</th><td>{{ dlldata.common_name }}</td></tr>
<tr><th>Version</th><td>{{ dlldata.version }}</td></tr>
<tr><th>Vendor</th><td>{{ dlldata.vendor }}</td></tr>
<tr><th>Distributors</th><td>{{ dlldata.distributors }}</td></tr>
<tr><th>MD5 Hash</th><td>{{ dlldata.md5_hash }}</td></tr>
Expand Down
1 change: 1 addition & 0 deletions migrations/04-add-version.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE dll_file ADD COLUMN `version` varchar(100) NULL;
3 changes: 2 additions & 1 deletion migrations/schematic_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import os

sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
os.environ.setdefault('DJANGO_SETTNGO_SETTINGS_MODULE', 'dlldir.settings')


# Set up playdoh.
import manage
from django.conf import settings

Expand Down

0 comments on commit 4be3e71

Please sign in to comment.