lots more stuff
This commit is contained in:
parent
46c9f0a447
commit
c4f250573a
19 changed files with 7619 additions and 149 deletions
|
@ -23,7 +23,10 @@ class RemixThinkForm(forms.ModelForm):
|
|||
class RenameThinkForm(forms.ModelForm):
|
||||
class Meta:
|
||||
model = Think
|
||||
fields = ['slug']
|
||||
fields = ['slug', 'category', 'is_template']
|
||||
widgets = {
|
||||
'category': forms.TextInput(attrs={'list': 'categories'})
|
||||
}
|
||||
|
||||
def __init__(self, *args, instance=None, **kwargs):
|
||||
self.original_root = None if instance is None else instance.root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue