This file contains hidden or 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
# -*- coding: utf-8 -*- | |
''' | |
Tricky admin -> xadmin merger. | |
Alex Moiseenko aka IMDagger. | |
''' | |
import logging | |
import types | |
from functools import wraps, update_wrapper | |
from django.http import HttpRequest | |
from django.contrib.admin import ModelAdmin |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
from django import forms | |
from django.forms import widgets | |
class ModelFormStyler(forms.ModelForm.__metaclass__): | |
''' | |
Allows to write such kind of forms: | |
... | |
class Some(ModelFormStyler): |
This file contains hidden or 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Генератор названий планет</title> | |
<script type="text/javascript" src="gen_planet_names.js"></script> | |
<script type="text/javascript"> | |
function generate() { | |
var list = document.getElementById("list"); | |
var planet_div = document.createElement("div"); |