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
=
committed
Jan 16, 2011
1 parent
c47862c
commit 523e6c1
Showing
7 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
from web.models import Password | ||
from web.models import * | ||
from django.contrib import admin | ||
|
||
admin.site.register(Password) | ||
admin.site.register(Source) | ||
admin.site.register(Password) |
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,6 +1,12 @@ | ||
from django.db import models | ||
|
||
class Source(models.Model): | ||
name = models.CharField(max_length = 255) | ||
def __unicode__(self): | ||
return self.name | ||
|
||
class Password(models.Model): | ||
password = models.CharField(max_length = 255) | ||
password = models.CharField(max_length = 1000) | ||
Source = models.ForeignKey(Source) | ||
def __unicode__(self): | ||
return self.password | ||
return self.password + " from " + self.Source.name |
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
Binary file not shown.