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
from django import forms | |
from your_app import widgets, models | |
class YourModelModelForm(forms.ModelForm): | |
class Meta: | |
model = models.YourModel | |
widgets = { | |
'your_field': widgets.RelatedModelSelect( | |
[models.GeneralModel, models.SpecificModel] # order is important here, the model that defines |
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
// ==UserScript== | |
// @name Animebytes yen per x | |
// @description adds yen per day/week/month and raw upload/download values to your AB profile page | |
// @include *animebyt.es/user.php?id=* | |
// @include *animebytes.tv/user.php?id=* | |
// @icon http://animebytes.tv/favicon.ico | |
// ==/UserScript== | |
function formatInteger(intStr){ | |
intStr += ''; |
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
// ==UserScript== | |
// @name Animebytes yen per x | |
// @description adds yen per day/week/month and raw upload/download values to your AB profile page | |
// @include *animebyt.es/user.php?id=* | |
// @include *animebytes.tv/user.php?id=* | |
// @icon http://animebytes.tv/favicon.ico | |
// ==/UserScript== | |
function formatInteger(intStr){ | |
intStr += ''; |